Purge change...

Per Buer perbu at linpro.no
Mon Jan 12 17:12:11 CET 2009

Poul-Henning Kamp wrote:

> The proposed change is to add a new purge primitive that takes a
> list of (header, regexp) pairs, for instance:
> 	purge Host host3 URL "\.jpg$"
> But once you think about it, you can do really wierd things:
> 	purge STATUS 404

This looks really useful. It can be used to implement "cache channels" -
don't worry, we'll do the RSS and other stuff outside of Varnish. :-)

One thing bothers me, however. This will mean we will accumulate a
longer and longer list or active purges. AFAIK this can be helped by two

1) The nuke thread. One threads which walks the heap and kills of purged
objects and shortens the list of purges.

2) Setting a TTL on a purge statement. If you have a maximum TTL of
24hrs there is no point in keeping the purge statement around and
checking incomming URIs against it after 24hrs.

2) might even make sense today.
http://linpro.no/ | http://redpill.se/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 260 bytes
Desc: OpenPGP digital signature
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20090112/24d07f4b/attachment-0003.pgp>

More information about the varnish-misc mailing list