Hello,

 I run varnish 2.1 and my front page is cached for 300s.
 I would like to purge this page when the object expires.

 I placed this in vcl_hit:

 sub vcl_hit {
 if (obj.ttl < 1s) {
 set obj.ttl = 0s;
 error 200 "Purged.";
 }
 }

 Is this correct?
 Can obj.ttl be negative or when it's expired will be = 0?

 Thanks

 Nuno
_______________________________________________
varnish-misc mailing list
[email protected]
http://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc

Reply via email to