[Wordpress]homepage not purging (Everton Blair)

Laurence Rowe l at lrowe.co.uk
Sat Jul 9 10:13:24 CEST 2011


On 9 July 2011 07:25, Everton Blair <everton at connectedinternet.co.uk> wrote:
> If I do:
> sub vcl_recv {
>     if (req.request == "PURGE") {
>             if (!client.ip ~ purge) {
>                 error 405 "Not allowed.";
>                 }
> ban("req.host == " req.http.host " && req.url == /magazine-homepage/");
> return(lookup);
>         }
> Won't that stop that page ever being cached, or is a ban not a 'ban' and
> just another type of flush/purge? VCL seems to = Very confusing language!
> On Sat, Jul 9, 2011 at 12:29 AM, Laurence Rowe <l at lrowe.co.uk> wrote:

No, a 'ban' only affects objects already in the cache at the time it is set.

Laurence

P.S. Please stay on the mailing list rather than replying privately.




More information about the varnish-misc mailing list