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: [email protected]
<[email protected]>FaceTime: [email protected]
<[email protected]>*
On Mon, Mar 23, 2015 at 3:22 AM, Andreas Plesner <[email protected]> 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
> [email protected]
> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
>
_______________________________________________
varnish-misc mailing list
[email protected]
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc