httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Plüm, Rüdiger, VF EITO <>
Subject AW: mod_cache & mod_disk_cache
Date Thu, 01 Feb 2007 12:25:39 GMT

> -----Ursprüngliche Nachricht-----
> Von: Tigges 
> Gesendet: Donnerstag, 1. Februar 2007 12:36
> An:
> Betreff: mod_cache & mod_disk_cache
> Hi,
> I use an Apache 2.2 with mod_perl, mod_cache & mod_disk_cache.
> I add an unique string to $r->uri  with an perl script, but have to
> save/load the cache files without this string. The uri I build looks
> like "/UNIQ123456789/filename", but the cached target should look like
> "/filename". Other pathes, like "/media/pic1.gif" should not 
> be affected.
> The "UNIQ" is needed for some special operations behind the proxy.
> Changes on this UNIQ-technique is impossible!
> Now I have to know how I can set/change the uri which is used to save
> and load the cache file.
> When I change the r->uri in mod_cache.c, the mod_disk_cache.c does not
> get the edited uri.
> I think I have to use an apr_xxx hook or smthg like this, but 
> I have no
> idea which to use.

This may be possible if you register a different ap_cache_generate_key
optional function and provide this function on your own.
I guess you should register your optional function during the register_hooks



View raw message