VCL purge

André Øien Langvand andre at idium.no
Mon Mar 3 18:35:22 CET 2008


Thank you, that makes sense now. However, I am still not able to make it
work. E.g using purge_hash(req.url + '#' + req.http.host + '#$'); throws
me an syntax error, failing at the apostrophe ('). Also tried diffrent
variations of quotation marks and backslashes. Is the escaping wrong?

--
André Øien Langvand <andre at idium.no> - PGP: 0x7B1E3468
Systemadministrator - Idium AS - http://www.idium.no


André Øien Langvand wrote:
> Yep, and as mentioned in the first mail, I've tried to use both req.url
> and req.http.host in diffrent combinations in purge_hash() without any
> luck. Using purge_url(), it seems to be working quite nice with
> purge_url(req.url), but I would really prefer to use purge_hash().
> 
> --
> André Øien Langvand <andre at idium.no> - PGP: 0x7B1E3468
> Systemadministrator - Idium AS - http://www.idium.no
> 
> 
> Dag-Erling Smørgrav wrote:
>> André Øien Langvand <andre at idium.no> writes:
>>> Yes, that was my thought. Besides an if (req.http.Pragma ~ "no-cache")
>>> in vcl_recv how can i purge the requested URL (and host)?.
>> purge_hash() and purge_url(), as documented in vcl(7).
>>
>> DES
> _______________________________________________
> varnish-misc mailing list
> varnish-misc at projects.linpro.no
> http://projects.linpro.no/mailman/listinfo/varnish-misc



More information about the varnish-misc mailing list