Can I tell if a PURGE was a hit or miss in Version 4
Jennings III, Raymond
raymond.jennings at nytimes.com
Mon Mar 23 14:27:12 CET 2015
This is what I basically have been using for years with V3 and it is
serving me exactly as I need and I would like to see if there is anything
equivalent to this V4. In does not seem to be the case that vcl_hit or
vcl_miss get called on a PURGE req in V4 - as they were in V3.
sub vcl_hit {
if (req.request == "PURGE") {
C{
VRT_purge(sp, 0, 0);
VRT_error(sp, 200, "Purged - Hit");
VRT_done(sp, VCL_RET_ERROR);
}C
}
}
sub vcl_miss {
if (req.request == "PURGE") {
C{
VRT_purge(sp, 0, 0);
VRT_error(sp, 200, "Purged - Miss");
VRT_done(sp, VCL_RET_ERROR);
}C
}
Raymond Jennings III
*nytimes.com <http://nytimes.com/>*
*Office: 212.556.7786 <212-556-7786>*
*iPhone: 914.330.5074 <914-330-5074>E-mail: Raymond.Jennings at nytimes.com
<Raymond.Jennings at nytimes.com>FaceTime: Raymond.Jennings at nytimes.com
<Raymond.Jennings at nytimes.com>*
On Mon, Mar 23, 2015 at 3:22 AM, Andreas Plesner <apj at mutt.dk> wrote:
> On Fri, Mar 20, 2015 at 01:42:55PM -0400, Jennings III, Raymond wrote:
>
> > Okay - regardless. I would like to know on a PURGE request if "anything"
> > was evicted. Even a true / false would be better than nothing.
>
> I don't believe you can. I don't believe you ever could. You may be able
> to see
> something in the shmlog, but I'm not sure if you can connect those to the
> purge
> request.
>
> --
> Andreas
>
> _______________________________________________
> varnish-misc mailing list
> varnish-misc at varnish-cache.org
> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20150323/a99d9bb1/attachment.html>
More information about the varnish-misc
mailing list