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 means 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/
signature.asc
Description: OpenPGP digital signature
_______________________________________________ varnish-misc mailing list [email protected] http://projects.linpro.no/mailman/listinfo/varnish-misc
