url.purge
Poul-Henning Kamp
phk at phk.freebsd.dk
Mon Apr 21 12:58:59 CEST 2008
In message <000601c8a39a$27269470$9e00a8c0 at stade.topconcepts.net>, "Sven Tietje
" writes:
>so, i try to purge all documents for a host by doing
>varnishadm -T 127.0.0.1:6082 url.purge "#http://mydomain.de/#$"
url.purge only operates on the URL part of the request, not on the
Host: header part.
If you need to select on both host+url you need to use hash.purge
CLI command and the hash string, by default is built from URL first
and host last, so the command to purge
http://foo.bar.com/index.html
would be:
hash.purge "index.html#foo.bar.com#"
--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG | TCP/IP since RFC 956
FreeBSD committer | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.
More information about the varnish-misc
mailing list