httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sander Striker <stri...@apache.org>
Subject [Fwd: [PATCH] 404 does not delete cached entries using mod_disk_cache]
Date Thu, 21 Jul 2005 12:55:40 GMT
Forwarding for Rüdiger, since he's having some problems posting.

Sander

-------- Original Message --------
Subject: [PATCH] 404 does not delete cached entries using mod_disk_cache
Date: Thu, 21 Jul 2005 14:52:19 +0200
From: Plüm, Rüdiger, VIS <ruediger.pluem@vodafone.com>
To: <striker@apache.org>

After having a discussion with various people (Sander, Justin, Paul) at the ApacheCon
I submit a new version of my 404 does not delete cached entries using mod_disk_cache:

Some comments:

1. In the case that there is an Apache generated error message the content filters get
   removed. This problem is now solved by adding a protocol filter (CACHE_REMOVE_URL)
   in the quick handler each time we add the cache save filter. If the cache save filter
   caches the response from the backend it just removes this filter from the chain.
   As the request CACHE_REMOVE_URL is running on a request that might be different fromi
   the one where the cache entry should be flushed, the cache request rec is taken from
   the filter context where it has been saved during insertation.


2. I adjusted the cache provider API for remove_url as I needed to have a pool
   and (in case of mod_disk_cache) the file name present at remove_url. Thus
   the prototype for remove url does now look like the following:

   int (*remove_url) (cache_handle_t *h, apr_pool_t *p);

Comments / thoughts?

Regards

Rüdiger



Mime
View raw message