[Wordpress]homepage not purging (Everton Blair)
Laurence Rowe
l at lrowe.co.uk
Sat Jul 9 01:29:10 CEST 2011
On 9 July 2011 00:16, Everton Blair <everton at connectedinternet.co.uk> wrote:
> Hi Laurence
> Thanks for the reply. I tried:
> sub vcl_recv {
> if (req.request == "PURGE") {
> if (!client.ip ~ purge) {
> error 405 "Not allowed.";
> }
> purge("req.host == " req.http.host " && req.url == /magazine-homepage/");
> return(lookup);
> }
> But I got this error:
> Message from VCC-compiler:
> Expected ';' got '('
> I'm using Varnish 3.0.
In varnish 3.0 the syntax has changed to ban. See:
https://www.varnish-cache.org/docs/3.0/tutorial/purging.html
Laurence
More information about the varnish-misc
mailing list