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