Cache hit statistics?

Maxim Dounin mdounin at mdounin.ru
Fri Apr 20 13:14:53 UTC 2012


Hello!

On Thu, Apr 19, 2012 at 07:10:45PM +0000, Micheal Wolfskill wrote:

> Does nginx have a cache hit ratio statistic... Ive been 
> searching .. or perhaps a way to differentiate in the logs wchi 
> was served from cache and which was not. Thanks

The $upstream_cache_status variable is what you are looking for.  
It's not yet described in docs, but here is a wiki entry:

http://wiki.nginx.org/HttpUpstreamModule#.24upstream_cache_status

Maxim Dounin



More information about the nginx mailing list