• Poul-Henning Kamp's avatar
    Implement purging on either of hash or url. · 3256a894
    Poul-Henning Kamp authored
    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>
    
    purge_hash operates on the hash-string which results from vcl_hash(),
    by default it is composed of:
    
    	req.url "#" req.http.host "#"
    
    To purge everything on the virtual host foo.bar.com:
    
    In CLI:
    	url.purge "#foo.bar.com#$"
    
    In VCL:
    	purge_hash("#foo.bar.com#$");
    
    
    The general format, if you have defined vcl_hash(), is:
    
    	Each "req.hash +=" operator appends the right hand side of the
    	+= and a "#" separator.
    
    You'll have to figure out your own regexps.
    
    
    Under the hood:
    
    Move the hash string from object to objecthead and save space while
    we're at it.
    
    Fix indentation in generated source.
    
    
    
    git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@1816 d4fa192b-c00b-0410-8231-f00ffab90ce4
    3256a894
Name
Last commit
Last update
..
compat Loading commit data...
Makefile.am Loading commit data...
binary_heap.h Loading commit data...
cli.h Loading commit data...
cli_common.h Loading commit data...
cli_priv.h Loading commit data...
flopen.h Loading commit data...
http_headers.h Loading commit data...
libvarnish.h Loading commit data...
libvcl.h Loading commit data...
miniobj.h Loading commit data...
queue.h Loading commit data...
shmlog.h Loading commit data...
shmlog_tags.h Loading commit data...
stat_field.h Loading commit data...
stats.h Loading commit data...
varnishapi.h Loading commit data...
vcl.h Loading commit data...
vcl_returns.h Loading commit data...
vpf.h Loading commit data...
vrt.h Loading commit data...
vrt_obj.h Loading commit data...
vsb.h Loading commit data...
vss.h Loading commit data...