Regarding changeset 1761
André Cruz
andre.cruz at co.sapo.pt
Fri Jul 27 18:30:13 CEST 2007
After reading this changeset:
############
r1761 | cecilihf | 2007-07-25 09:39:10 +0100 (Wed, 25 Jul 2007) | 9
lines
Changed paths:
M /trunk/varnish-cache/bin/varnishd/cache_ban.c
M /trunk/varnish-cache/include/vrt.h
M /trunk/varnish-cache/lib/libvcl/vcc_action.c
M /trunk/varnish-cache/lib/libvcl/vcc_fixed_token.c
Implemented http purge with regexp. Example vcl usage:
sub vcl_recv {
if (req.request == "REPURGE") {
purge(req.url);
error 404 "Purged";
}
}
############
I tried the example VCL provided but I get this error:
$ ./varnishd -f ../../etc/blogs.vcl -n /tmp/pretty -d
Expected action, 'if' or '}'
(../../etc/blogs.vcl Line 25 Pos 7)
purge(req.url);
------#####----------
I'm running r1778. Is this functionality still not implemented?
Thanks,
André
More information about the varnish-misc
mailing list