sorry about replying all.<div><br></div><div>"No, a 'ban' only affects objects already in the cache at the time it is set."</div><div><br></div><div>let's see if I understand this correctly:</div><div>
<br></div><div><ol><li>homepage will be cached until a purge comes in</li><li>purge triggers the ban, which removes the homepage from the cache</li><li>when homepage is viewed again it is cached, and will be until another purge comes in?</li>
</ol><div>I think the use of the word 'ban' is what causes my confusion.</div><div><br></div><div>I tried adding:</div><div><br></div><div>purge("req.host == " req.http.host " && req.url == " ^/magazine-homepage/);</div>
<div><br></div><div>and</div><div><br></div><div>ban("req.host == " req.http.host " && req.url == " ^/magazine-homepage/);</div><div><br></div><div>as I'm using 3.0, but I kept getting a syntax error. Can you tell me what I'm doing wrong please.</div>
<div><br></div><div>Thanks</div><div><br></div><div><br></div><div><br></div><br><div class="gmail_quote">On Sat, Jul 9, 2011 at 9:13 AM, Laurence Rowe <span dir="ltr"><<a href="mailto:l@lrowe.co.uk">l@lrowe.co.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On 9 July 2011 07:25, Everton Blair <<a href="mailto:everton@connectedinternet.co.uk">everton@connectedinternet.co.uk</a>> wrote:<br>
> If I do:<br>
> sub vcl_recv {<br>
> if (req.request == "PURGE") {<br>
> if (!client.ip ~ purge) {<br>
> error 405 "Not allowed.";<br>
> }<br>
> ban("req.host == " req.http.host " && req.url == /magazine-homepage/");<br>
> return(lookup);<br>
> }<br>
> Won't that stop that page ever being cached, or is a ban not a 'ban' and<br>
> just another type of flush/purge? VCL seems to = Very confusing language!<br>
> On Sat, Jul 9, 2011 at 12:29 AM, Laurence Rowe <<a href="mailto:l@lrowe.co.uk">l@lrowe.co.uk</a>> wrote:<br>
<br>
</div>No, a 'ban' only affects objects already in the cache at the time it is set.<br>
<font color="#888888"><br>
Laurence<br>
</font><br>
P.S. Please stay on the mailing list rather than replying privately.<br>
</blockquote></div><br></div>