Welcome! Log In Create A New Profile

Advanced

How to Purge cach of 502 and 504's

March 19, 2014 10:41AM
Hi All,

I am using nginx as a reverse proxy and have configured it to cache 502 using proxy_cache_valid 502 30m; This is working fine, but my question is how do I purge these from the cache if required?

There is no matching file in the proxy_cache_path to delete, so it appears the Nginx caches these in memory. Restarting Nginx certainly clears these cached results but I need to avoid restarting as I have Websocket connections I want to avoid dropping.

I can disable caching using proxy_no_cache and proxy_cache_bypass and reload, then wait for the cached entries to time out. That seems to work but I wanted to ask if there is a simple one hit solution to empty any cached results.

Kind Regards,

Warren.
SubjectAuthorPosted

How to Purge cach of 502 and 504's

tobydunstMarch 19, 2014 10:41AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 70
Record Number of Users: 7 on March 06, 2014
Record Number of Guests: 229 on August 01, 2014
Powered by nginx    Powered by FreeBSD    PHP Powered    Powered by Percona     ipv6 ready