Monitoring cache statistics

is it possible to somehow monitor nginx proxy_cache efficiency? For
example by having a variable that can be logged in the access log to see
if the request has been cached,

Posted at Nginx Forum:

The answer that I got to this question was “Not yet”.

See Re: Fastcgi cache.

Posted at Nginx Forum:

Thanks, Jim, I can live with “yet” too ))

Posted at Nginx Forum:

nice stuff !

Posted at Nginx Forum:

is it possible to somehow monitor nginx proxy_cache efficiency? For example by having a variable that can be logged in the access log to see if the request has been cached,

I wrote the attached patch to get some cache hit stats included in the
status module.

Hi people!

Just a small note - this patch does not work with nginx-1.4.4 :slight_smile:
I think it’s ok after 4.5 years, maybe there is a working version
around?

Posted at Nginx Forum:

Right, I have found that too, sorry for disturbance, thanks!

Posted at Nginx Forum:

On Fri, Jan 10, 2014 at 03:50:05AM -0500, bodomic wrote:

Hi people!

Just a small note - this patch does not work with nginx-1.4.4 :slight_smile:
I think it’s ok after 4.5 years, maybe there is a working version around?

There’s the Module ngx_http_status_module
module that includes cache statistics.

It’s currently available as part of NGINX Plus,