Branch: Tag:

2001-08-22

2001-08-22 20:04:31 by Martin Stjernholm <mast@lysator.liu.se>

Added RequestID.cache_status and $cache-status log variable which can be used
to log the cache hit(s) for the requests.

Rev: server/base_server/configuration.pike:1.465
Rev: server/base_server/prototypes.pike:1.31
Rev: server/base_server/roxen.pike:1.709
Rev: server/protocols/http.pike:1.331

4:   #include <stat.h>   #include <config.h>   #include <module_constants.h> - constant cvs_version="$Id: prototypes.pike,v 1.30 2001/08/15 15:48:06 per Exp $"; + constant cvs_version="$Id: prototypes.pike,v 1.31 2001/08/22 20:04:26 mast Exp $";      class Variable   {
590:    string host;    //! The client's hostname, if resolved.    +  multiset(string) cache_status = (<>); +  //! Contains the caches that was hit when the request was served. +  //! See the docstring for @tt{$cache-status@} in the @tt{LogFormat@} +  //! global variable for known values, but note that the multiset +  //! actually never contains the value "nocache"; it's only written +  //! when the multiset is empty. +     object root_id;    //! @decl RequestID root_id;    //! The root id object directly associated with the request - remains