trafficserver-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shu Kit Chan <chanshu...@gmail.com>
Subject Re: Cache Inspector Problem for Handling Huge number of Cache Objects
Date Thu, 31 Jul 2014 18:48:06 GMT
Or we can simply offer a new function in lua to call
"TSHttpTxnCacheLookupStatusSet" as an enhancement.


On Wed, Jul 30, 2014 at 11:30 AM, <geodni@free.fr> wrote:

> Thanks a lot Kit!
> It seems to do what I would like to do but syntax of the config file is
> not given.
> What I have discovered is two space separated fields :
> 1- all characters except '#' (maybe a full URL)
> 2- decimals (maybe a timestamp in epoch, not easy to manage)
>
> This plugin might be use from remap.config and the config file path maybe
> taken from @pparam. If Phil as some more detailed informations on it, I
> take them ! Now I have to try compiling Traffic Server 5 under FreeBSD 10,
> I run 4.2. on an unofficial porting...
>
> This plugin calls "TSHttpTxnCacheLookupStatusSet(txn,
> TS_CACHE_LOOKUP_HIT_STALE)" to force revalidate the object.
> With actual LUA plugin, only "ts.http.get_cache_lookup_status" is
> available but maybe it would be possible deal with
> ts.hook(TS_LUA_HOOK_CACHE_LOOKUP_COMPLETE, do_something) where do_something
> is trying to add a Cache-Control="must-revalidate" with
> ts.client_request.header.HEADER ?...
>
> Denis
>
> > Have you checked out the regex_revalidate plugin?
> >
> https://github.com/apache/trafficserver/tree/master/plugins/experimental/regex_revalidate
> > There's not much documentation but I think it has some similarities
> > to what you try to do. I think Phil is the contributor of this
> > plugin.
> >
> >
> > I will also keep your feedbacks in mind when I try to improve the lua
> > plugin in the coming weeks.
> >
> > Thanks.
> >
> >
> > Kit
>

Mime
View raw message