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 <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>

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


Attachment: new_404_patch_trunk.diff
Description: Binary data

Reply via email to