httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Justin Erenkrantz <jus...@erenkrantz.com>
Subject Re: [PATCH] mod_disk_cache deterministic tempfiles
Date Wed, 17 Aug 2005 22:17:41 GMT
--On August 17, 2005 9:52:32 PM +0100 Colm MacCarthaigh <colm@stdlib.net> 
wrote:

> 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.
>
> Does that make sense?

Um, isn't that what we already do?  -- justin

Mime
View raw message