Skip to content

ngx_http_cache_purge_module v2.4

Compare
Choose a tag to compare
@denji denji released this 20 Nov 19:34
· 43 commits to master since this release

ENHANCEMENT

  • Explain the purge logic
  • Fix compatibility with nginx-1.7.12+

FEATURE

  • Convert config file to build dynamic module

  • purge all: Include option to purge all the cached files
    This option can be slow if a lot of content is cached, or if the
    storage used for the cache is slow. But you really should be using
    RAM as your cache storage.

  • partial keys: Support partial keys to purge multiple keys.
    Put an '*' at the end of your purge cache URL, e.g:

    proxy_cache_key $scheme$host$uri$is_args$args$cookie_JSESSIONID;
    curl -X PURGE https://example.com/pass*
    

    This will remove every cached page whose key cache starting with:

    httpsexample.com/pass*
    

    Be careful not passing any value for the values after the $uri, or put
    it at the end of your cache key.