If someone does set obj.ttl = 0s; set obj.grace = 0s; set obj.conditional_timeout = 60s;
what will happen? artur On Feb 24, 2011, at 9:34 AM, Poul-Henning Kamp wrote: > In message <[email protected]>, Geoff Simmons writes: > >> In the second case, there's actually no point in having >> obj.conditional_timeout > obj.grace; an object is evicted when grace >> elapses, no matter what. In that case, we should *not* do something we >> were talking about last week: >> >>> - the cache eviction time for an object (oc->timer_when) becomes >>> o->ttl + max(o->conditional_timeout, HSH_Grace(o->grace)) > > I still think we should do it this way. If people want > conditionnal_timeout == grace > they can set them that way. > > But having them separate allows us to define additional policies, > where objects can linger for longer in the hope they are reused. > > > -- > Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 > [email protected] | TCP/IP since RFC 956 > FreeBSD committer | BSD since 4.3-tahoe > Never attribute to malice what can adequately be explained by incompetence. _______________________________________________ varnish-dev mailing list [email protected] http://www.varnish-cache.org/lists/mailman/listinfo/varnish-dev
