[Varnish] #1139: default_keep makes objects stay around too long
Varnish
varnish-bugs at varnish-cache.org
Wed May 16 15:30:37 CEST 2012
#1139: default_keep makes objects stay around too long
----------------------+-----------------------------------------------------
Reporter: martin | Owner:
Type: defect | Status: new
Priority: normal | Milestone:
Component: varnishd | Version: trunk
Severity: normal | Keywords:
----------------------+-----------------------------------------------------
In some "forced expiry" situations (e.g. purge from vcl), the default_keep
parameter will make the objects stay in cache longer than expected.
One possible solution is to use EXP_Clr() always (the ban mechanism uses
this), which resets also the entered time, causing the ttl to be very
negative.
Another solution is to not take these parameters into account at ttl
calculation time, but set the keep and grace of an object to the values of
these parameters at the time the object is created (instead of -1).
See attached varnishtest script.
--
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1139>
Varnish <https://varnish-cache.org/>
The Varnish HTTP Accelerator
More information about the varnish-bugs
mailing list