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 <[email protected]> wrote:
> On 9 July 2011 07:25, Everton Blair <[email protected]>
> 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 <[email protected]> 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.
>
_______________________________________________
varnish-misc mailing list
[email protected]
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc