httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Jagielski <...@jaguNET.com>
Subject Re: [PATCH] mod_disk_cache deterministic tempfiles
Date Wed, 17 Aug 2005 21:29:03 GMT
Colm MacCarthaigh wrote:
> 
> On Wed, Aug 17, 2005 at 04:11:01PM -0400, Brian Akins wrote:
> > I have the thought that we could also serve files that have "recently 
> > expired" (recent being configurable) if the object was being cached. 
> > Psudocode:
> > 
> > if(expired < (now - recent)) {
> 
> Content definitely should not be served from the cache after it has
> expired imo. However I think an approach like;
> 
>     if((now + interval) > expired) {
>         if(!stat(tmpfile)) {
> 	    update_cache_from_backend();
> 	}
>     } 
> 
> ie "revalidate the cache content after N-seconds before it is due to be
> expired" would have the same effect, but avoid serving stale content.
> 

Would be interesting to profile that to determine how expensive those
stats could be...

-- 
===========================================================================
   Jim Jagielski   [|]   jim@jaguNET.com   [|]   http://www.jaguNET.com/
                     "Sith happens"  -  Yoda

Mime
View raw message