You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Sander Striker <st...@apache.org> on 2005/07/21 14:55:40 UTC

[Fwd: [PATCH] 404 does not delete cached entries using mod_disk_cache]

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 <ru...@vodafone.com>
To: <st...@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



Re: [Fwd: [PATCH] 404 does not delete cached entries using mod_disk_cache]

Posted by r....@t-online.de.
Short ping. Some time has passed. Has anybody found some time to
review this patch?

Regards

Rüdiger

Sander Striker wrote:
> 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 <ru...@vodafone.com>
> To: <st...@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:
> 

[..cut..]