Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 78470 invoked from network); 1 Dec 2008 11:04:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Dec 2008 11:04:03 -0000 Received: (qmail 43995 invoked by uid 500); 1 Dec 2008 11:04:04 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 43981 invoked by uid 500); 1 Dec 2008 11:04:04 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 43970 invoked by uid 99); 1 Dec 2008 11:04:04 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Dec 2008 03:04:04 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [212.85.38.174] (HELO popeye.combios.es) (212.85.38.174) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Dec 2008 11:02:35 +0000 Received: from [192.168.250.50] (p549EA9D0.dip0.t-ipconnect.de [84.158.169.208]) (authenticated bits=0) by popeye.combios.es (8.13.8/8.13.8/Debian-3) with ESMTP id mB1B0Dvu022242 for ; Mon, 1 Dec 2008 12:00:14 +0100 Message-ID: <4933C3B5.7010003@ice-sa.com> Date: Mon, 01 Dec 2008 12:00:05 +0100 From: =?ISO-8859-1?Q?Andr=E9_Warnier?= User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: users@httpd.apache.org References: <0C137067804891498EAC524A079E1205691403D826@FRZNEXCH-01.itworx.com> In-Reply-To: <0C137067804891498EAC524A079E1205691403D826@FRZNEXCH-01.itworx.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on popeye.combios.es X-Virus-Scanned: ClamAV 0.92.1/8698/Sun Nov 30 16:09:19 2008 on popeye.combios.es X-Virus-Status: Clean X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No, score=-97.9 required=2.5 tests=RCVD_IN_PBL, RCVD_IN_SORBS_DUL,USER_IN_WHITELIST autolearn=no version=3.2.3 Subject: Re: [users@httpd] Clearing cache selectively on Apache + mod_cache Karim Zaki wrote: > Greetings all, > > I'm running Apache/2.2.10 (Win32) mod_jk/1.2.27 + mod_cache. I'm looking for a way to clear the cache from Apache for specific URLs. I'm using Apache to cache dynamic content that is served by Tomcat, and I would like to keep the content (age) high (e.g. 24 hours) but still to be able to clear the cache for specific pages when the content is updated. Is there a way to tell Apache to clear the cache for a specific list of URLs? > Hi. I am not going to answer your original question, but I just have a couple of remarks based on your description above, and maybe a different way of thinking about this. You say that you want to cache dynamic content generated by Tomcat, for 24 hours. In other words, it is not really dynamic content, because for 24 hours your users are going to get the same unique version. If so, then why would you not generate these pages in advance, and put them somewhere on your Apache server to be served as static content ? Then each 24 hours you can do the same and refresh them from Tomcat. (This would be fairly simple to do using a script, calling something like wget or curl, or in perl using LWP). I believe it is fairly simple to configure your Apache in such a way that it will look first of this URL is available as a static page, and if not forward the call to Tomcat. (using mod_rewrite e.g.). --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org