Does restart cause the backend to be queried for the page again? I'd prefer if a purge did not re-fetch the URL from the backend as this can caused unwanted content to stay in the cache and my cache is relatively limited in size. Can I do something like:<div>
<br></div><div><div>sub vcl_hit {</div><div> if (req.request == "PURGE") {</div><div> set obj.ttl = 0;</div><div> error 200 "Purged";</div><div> }</div><div>}</div><div><br></div><div>
sub vcl_miss {</div><div> if (req.request == "PURGE") {</div><div> error 200 "Purged (not in cache)";</div><div> }</div><div>}</div><div><br></div><br><div class="gmail_quote">On Thu, Jun 11, 2009 at 4:46 PM, Darryl Dixon - Winterhouse Consulting <span dir="ltr"><<a href="mailto:darryl.dixon@winterhouseconsulting.com">darryl.dixon@winterhouseconsulting.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br>
Instead, in vcl_hit, if the object should be purged, set obj.ttl to 0 and<br>
then restart the request. This solved the problem for me.<br>
<br></blockquote></div></div>