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.
Subject Author Posted

How to Purge cach of 502 and 504's

tobydunst March 19, 2014 10:41AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 291
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready