httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Colm MacCarthaigh <c...@stdlib.net>
Subject Re: [PATCH] mod_disk_cache deterministic tempfiles
Date Wed, 17 Aug 2005 20:52:32 GMT
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.

Does that make sense?

-- 
Colm MacCárthaigh                        Public Key: colm+pgp@stdlib.net

Mime
View raw message