When using apache as a proxy for a number of clients how can I work out the hit rate for the cached items?

link|improve this question
feedback

1 Answer

up vote 0 down vote accepted

you can calculate the hit ratio by counting the entries in access_log with return code 200 and 304.

  • 200 => no hit (most of the time)
  • 304 => hit (most of the time)

it is not the absolute exact cache hit ratio, but is good enough in most cases.

and some more background info from apache.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.