httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Akins <>
Subject [PATCH] mod_cache storage notify and object_info
Date Mon, 27 Feb 2006 20:29:07 GMT
I'm away from my build/test environment, but this is mostly to plant an 

Basically it does this:

Upon successful storage of an object, it call the optional 
ap_cache_storage_notify.  a module, if it implements this function, 
could then use the ap_cache_info function to get info about the cached 

Example (omitting error checking):

in mod_foo:

apr_status_t foo_storage_notify(request_rec *r) {
     char *data;
     apr_time_t expires;

     ap_cache_info(r, AP_CACHE_INFO_EXPIRES, &expires);
     ap_cache_info(r, AP_CACHE_INFO_DATA, &data);

     /*do something cool with this, like log in database...*/	

Brian Akins
Lead Systems Engineer
CNN Internet Technologies

View raw message