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
how do I purge these from the cache if required?
There is no matching file in the proxy_cache_path to delete, so it
the Nginx caches these in memory. Restarting Nginx certainly clears
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
I wanted to ask if there is a simple one hit solution to empty any
Posted at Nginx Forum: