Re: How to prevent varnish from deleting its entire cache when full?

2008-01-16 Thread Poul-Henning Kamp
In message <[EMAIL PROTECTED]>, "Fred rik Kristiansen" writes: >I'm trying to prevent varnish from deleting its entire cache when full. So I >have added this our VCL confguration: I'm currently working on the prefetch/degraded mode code, and that will change most if not all of this. Stay tuned.

How to prevent varnish from deleting its entire cache when full?

2008-01-15 Thread Fredrik Kristiansen
Hi, I'm trying to prevent varnish from deleting its entire cache when full. So I have added this 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 a