You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Brian Akins <br...@turner.com> on 2006/01/24 22:31:47 UTC

struct cache_info docs

what are these supposed to be?

struct cache_info {
     int status;
     apr_time_t date;
     apr_time_t expire;
     apr_time_t request_time;
     apr_time_t response_time;
};


ie, what are the documented values your supposed to set/get from this?


-- 
Brian Akins
Lead Systems Engineer
CNN Internet Technologies

Re: struct cache_info docs

Posted by Colm MacCarthaigh <co...@stdlib.net>.
On Tue, Jan 24, 2006 at 04:31:47PM -0500, Brian Akins wrote:
> what are these supposed to be?
> 
> struct cache_info {
>     int status;

the HTTP status code of the cached entity. Though not neccessarily the
status code finally issued to the request. e.g. 200 for the former,
possibly 302 for the latter.

>     apr_time_t date;

The original time corresponding the "Date:" header of the request served
when the entity was cached.

>     apr_time_t expire;

see lines 676 onwards of mod_cache.c, but basically a time when the
cached entity is due to expire.

>     apr_time_t request_time;

r->request_time from the same request.

>     apr_time_t response_time;

apr_time_now() at the time the entity was actually cached.

Hope that helps!

-- 
Colm MacCárthaigh                        Public Key: colm+pgp@stdlib.net