multiple paging in only one PURGE
request. The example is
http://myhost.com/path/to/index.php?id=123page=1
http://myhost.com/path/to/index.php?id=123page=2
http://myhost.com/path/to/index.php?id=123page=3
Sometimes, the maximum page can be more than 1000. So, we think about
purge_url(req.http
) {
purge_url(req.url);
}
}
}
sub vcl_miss {
if (req.request == PURGE) {
error 404 The url could not be found in the cache.;
}
}
sub vcl_hit {
if (req.request == PURGE) {
set obj.ttl = 0s
= www.mysite.com;
}
#Purge specified files from acl purge.
#Purge = Delete the specified url from the cache
if(req.request == PURGE) {
if(client.ip ~ purge) {
purge_url(req.url);
}
}
sub vcl_miss