purge files from cache
Tollef Fog Heen
tfheen at varnish-software.com
Tue Jul 6 08:52:41 CEST 2010
]] Alex F
| Prior to version 2.1.2 there used to be hash.purge to which I would
| pass the file and the url to be purged.
| Now I see that it has been removed.
| How can I achieve the same functionality?
| eg: hash.purge style.css example.com
Try:
purge req.url == "style.css" && req.http.host == "example.com"
I think the quotes are needed, but you'll find out quickly enough
yourself. :-)
cheers,
--
Tollef Fog Heen
Varnish Software
t: +47 21 54 41 73
More information about the varnish-misc
mailing list