Mailing List Archive

Prevent varnish from deleting its entire cache(obj.lastuse)
Hi,

I'm trying to prevent varnish from deleting its entire cache when full, so I
have added this to our VCL confguration:

sub vcl_discard {
# Keep objects in use last 5 minutes
if (obj.lastuse > 300) {
discard;
}

keep;
}

But variable obj.lastuse don't seem to be available and varnish won't start
with this script.

Fredrik Kristiansen
Nettby.no <http://nettby.no/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.linpro.no/pipermail/varnish-misc/attachments/20080115/428a06d9/attachment.htm