Skip to content

Conversation

@sezerkaratas
Copy link

hi

fastcgi_cache_purge PURGE from all;

or

location ~ /purga(/.)?. {
allow all;
fastcgi_cache_purge WORDPRESS "$1mobileversion";
}

curl -X ...............................

HTTP/1.1 412 Precondition Failed

pls help me

dbu and others added 25 commits August 3, 2016 13:58
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.

Signed-off-by: Francisco Miguel Biete <[email protected]>
Signed-off-by: Francisco Miguel Biete <[email protected]>

Resolved FRiCKLE#33
Resolved FRiCKLE#35
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.

Signed-off-by: Francisco Miguel Biete <[email protected]>
Signed-off-by: Francisco Miguel Biete <[email protected]>

Resolved FRiCKLE#33
Resolved FRiCKLE#35
cleanup comments a bit
Update status code assertions to match 404 => 412 change, fix root
directive in proxy3.t and proxy4.t
Because file.log is not initialized and the file variable is not zeroed
out after initialization, the call to ngx_log_error_core in
ngx_read_file results in a segmentation fault.
cplcf->conf was not being set when using separate location purge
syntax, so the attempt to access cplcf->conf->purge_all in
ngx_http_cache_purge_handler was causing a segmentation fault.
Purging multiple cache entries due to the "Vary" request header
fails if not specifying the exact same headers in the purge request.

This addition supports purging multiple cache entries by adding a "$"
at the end of the cache key specified with the purge request.
added support for purging multiple pages with the same cache key
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants