Debugging Nginx Cache Misses: Hitting high number of MISS despite high proxy valid
quintinpar at gmail.com
Sat May 12 16:26:07 UTC 2018
My proxy cache path is set to a very high size
proxy_cache_path /var/lib/nginx/cache levels=1:2
and the size used is only
sudo du -sh *
Proxy cache valid is set to
proxy_cache_valid 200 120d;
I track HIT and MISS via
add_header X-Cache-Status $upstream_cache_status;
Despite these settings I am seeing a lot of MISSes. And this is for pages I
intentionally ran a cache warmer an hour ago.
How do I debug why these MISSes are happening? How do I find out if the
miss was due to eviction, expiration, some rogue header etc? Does Nginx
provide commands for this?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the nginx