trafficserver-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alan Carroll <solidwallofc...@oath.com>
Subject Re: cache.config : ttl-in-cache
Date Fri, 07 Dec 2018 18:50:49 GMT
Gah. i think that will have to wait for the YAML conversion. The parsing
support from ControlMatcher makes anything more than this proposal to
difficult to make it worth while.  I'd need some other changes in the base
code, but I could do those now even if it's not directly accessible.

On Thu, Dec 6, 2018 at 6:58 PM Leif Hedstrom <zwoop@apache.org> wrote:

> Can you specify both >= and <= ? Such that we ignore a cc that would go
> below the minimum, yet caps the upper limit?
>
> — Leif
>
> On Dec 6, 2018, at 16:39, Alan Carroll <solidwallofcode@oath.com> wrote:
>
> There's been an internal request to extend the meaning of the
> "ttl-in-cache" directive for the cache.config configuration file. After
> several failed attempts, this is my current approach.
>
> The time operators '<' and '>' are added for the ttl-in-cache directive.
> These mean "at most" and "at least" respectively and are used in front of
> the time specifier. E.g.
>
> ... ttl-in-cache=30m # exactly 30 minutes, as it currently means.
> ... ttl-in-cache=>30m # at least 30 minutes in cache.
> ... ttl-in-cache=<30m # at most 30 minutes in cache
>
> For "at least", if the response headers indicate a cache time longer than
> the specified time, that is used, otherwise the specified time is used. The
> opposite for "at most" - if the response has a shorter cache time, that is
> used, otherwise the specified time. A subtle point is that "=<" may not
> force an object in to cache, because a response that doesn't allow caching
> is treated as if the cache time was zero, which will be less than the
> specified time.
>
> P.S. Due to the way this file is parsed, the '=' must be first.
>
> --
> *Beware the fisherman who's casting out his line in to a dried up
> riverbed.*
> *Oh don't try to tell him 'cause he won't believe. Throw some bread to the
> ducks instead.*
> *It's easier that way. *- Genesis : Duke : VI 25-28
>
>

-- 
*Beware the fisherman who's casting out his line in to a dried up riverbed.*
*Oh don't try to tell him 'cause he won't believe. Throw some bread to the
ducks instead.*
*It's easier that way. *- Genesis : Duke : VI 25-28

Mime
View raw message