Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 68240 invoked from network); 17 Aug 2005 21:29:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 17 Aug 2005 21:29:14 -0000 Received: (qmail 24964 invoked by uid 500); 17 Aug 2005 21:29:10 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 24901 invoked by uid 500); 17 Aug 2005 21:29:10 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 24888 invoked by uid 99); 17 Aug 2005 21:29:09 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Aug 2005 14:29:09 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [209.133.192.6] (HELO devsys.jaguNET.com) (209.133.192.6) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Aug 2005 14:29:28 -0700 Received: (from jim@localhost) by devsys.jaguNET.com (8.11.7a/jag-2.6) id j7HLT7v14466 for dev@httpd.apache.org; Wed, 17 Aug 2005 17:29:07 -0400 (EDT) From: Jim Jagielski Message-Id: <200508172129.j7HLT7v14466@devsys.jaguNET.com> Subject: Re: [PATCH] mod_disk_cache deterministic tempfiles To: dev@httpd.apache.org Date: Wed, 17 Aug 2005 17:29:03 -0400 (EDT) Reply-To: jim@jaguNET.com In-Reply-To: <20050817205232.GA2898@stdlib.net> from "Colm MacCarthaigh" at Aug 17, 2005 09:52:32 PM X-Mailer: ELM [version 2.5 PL5] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N 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