r1816 - in trunk/varnish-cache: bin/varnishd include lib/libvcl

Dag-Erling Smørgrav des at linpro.no
Thu Aug 9 17:09:24 CEST 2007

phk at projects.linpro.no writes:
> Log:
> Implement purging on either of hash or url.
> In VCL:
> 	purge_url(<regexp>)
> 	purge_hash(<regexp>)
> 	(for an interrim period purge(<regexp>) will be the same as purge_url).
> In CLI
> 	url.purge <regexp>
> 	hash.purge <regexp>

I'm not entirely comfortable with this.  If the goal is to allow
purging to take the virtual host into account, I believe it would be
better to implement URL normalization so the host name becomes part of
the URL.

That being said, there is no reason to provide backward compat with
purge() since we never released it - it was added after 1.1.

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

More information about the varnish-commit mailing list