[Wordpress]homepage not purging (Everton Blair)

Everton Blair everton at connectedinternet.co.uk
Sat Jul 9 11:13:32 CEST 2011


sorry about replying all.

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

let's see if I understand this correctly:


   1. homepage will be cached until a purge comes in
   2. purge triggers the ban, which removes the homepage from the cache
   3. when homepage is viewed again it is cached, and will be until another
   purge comes in?

I think the use of the word 'ban' is what causes my confusion.

I tried adding:

purge("req.host == " req.http.host " && req.url == " ^/magazine-homepage/);

and

ban("req.host == " req.http.host " && req.url == " ^/magazine-homepage/);

as I'm using 3.0, but I kept getting a syntax error.  Can you tell me what
I'm doing wrong please.

Thanks




On Sat, Jul 9, 2011 at 9:13 AM, Laurence Rowe <l at lrowe.co.uk> wrote:

> 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.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20110709/c6654138/attachment-0003.html>


More information about the varnish-misc mailing list