vcl_miss for PURGE in varnish 4.0

Andreas Plesner Jacobsen apj at mutt.dk
Wed Jul 30 10:52:34 CEST 2014


On Wed, Jul 30, 2014 at 08:40:16AM -0000, Suyog Shirgaonkar wrote:
> Hello,Have we obsolete use of vcl_miss with version 4.0.1 for purge calls.
> Objects not available in cache also responds with 200 Purged as the calls to
> purge is always successful. Is there any remedy available to distinguish if
> the objects are present in the cache or not after i send a PURGE call. Below

The object is by definition not present after a purge, so I'm not sure I
understand the question.

You can fetch the object with a new request and see if you hit vcl_miss. But be
aware that other clients could have put it in the cache between your purge and
your fetch.

-- 
Andreas



More information about the varnish-misc mailing list