Mailing List Archive

Regarding changeset 1761
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?
Regarding changeset 1761 [ In reply to ]
Andr? Cruz <andre.cruz at co.sapo.pt> writes:
> 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?

Check again. You are almost certainly running the wrong binary.

DES
--
Dag-Erling Sm?rgrav
Senior Software Developer
Linpro AS - www.linpro.no