Changes between Version 20 and Version 21 of VCL


Ignore:
Timestamp:
2009-09-28 09:37:25 (5 years ago)
Author:
kane
Comment:

more documentation on 'purge'

Legend:

Unmodified
Added
Removed
Modified
  • VCL

    v20 v21  
    162162As regsuball() but this replaces all occurrences. 
    163163 
     164=== purge === 
     165 
     166Purge objects based on a list of conditions. For the purge to happen, every condition must be met. For example: 
     167 
     168{{{ 
     169  purge( "req.url == / && obj.http.foo ~ bar" ); 
     170}}} 
     171 
     172See [wiki:VCLExamplePurging] for more code examples 
     173 
     174=== purge_url(regex) === 
     175Purge all objects in cache whose URLs match __regex__. For example: 
     176 
     177{{{ 
     178  purge_url( "^/foo$" ); 
     179}}} 
     180 
     181See [wiki:VCLExamplePurging] for more code examples 
     182 
    164183=== purge_hash(regex) === 
    165184Purge all objects in cache whose hash strings match __regex__. 
    166185 
    167 === purge_url(regex) === 
    168 Purge all objects in cache whose URLs match __regex__. 
     186See [wiki:VCLExamplePurging] for more code examples 
    169187 
    170188== Subroutines ==