Listing of cache content possible?

andan andan armdan20 at gmail.com
Tue Dec 14 17:41:29 CET 2010


2010/12/14 Stefan Pommerening <pom at dmsp.de>:
> Hi,
>
> is there any way or tool to find out what is stored in the cache at a given
> time?

According to http://www.varnish-cache.org/docs/2.1/faq/general.html you can't.

But always you can do a GET and look at X-Varnish header, hit (two
numbers) or miss (one number), says to you if the object is in cache,
of course only if the object is cacheable.

And of course, if the object is cacheable and the object was not in
cache before you do GET, now it's in cache :) In some scenarios this
trick is not desirable, specially if you ONLY want to know if the
object is in cache.

Kind Regards.




More information about the varnish-misc mailing list