2001-08-22
2001-08-22 20:04:31 by Martin Stjernholm <mast@lysator.liu.se>
-
46d4cb22017362eb8736b22b4f5ed5f20425eec0
(8 lines)
(+6/-2)
[
Show
| Annotate
]
Branch: 5.2
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
2:
// Modified by Francesco Chemolli to add throttling capabilities.
// Copyright © 1996 - 2000, Roxen IS.
- constant cvs_version = "$Id: http.pike,v 1.330 2001/08/21 09:25:02 jonasw Exp $";
+ constant cvs_version = "$Id: http.pike,v 1.331 2001/08/22 20:04:31 mast Exp $";
// #define REQUEST_DEBUG
#define MAGIC_ERROR
101:
array (string) client;
array (string) referer;
+ multiset(string) cache_status = (< >);
+
mapping file;
object my_fd; /* The client. */
2125: Inside #if defined(RAM_CACHE)
MY_TRACE_LEAVE ("Using entry from ram cache");
conf->hsent += strlen(file->hs);
+ cache_status["protcache"] = 1;
if( strlen( d ) < 4000 )
{
TIMER_END(cache_lookup);
2150: Inside #if defined(RAM_CACHE)
}
}
TIMER_END(cache_lookup);
- #endif
+ #endif // RAM_CACHE
TIMER_START(parse_request);
things_to_do_when_not_sending_from_cache( );
TIMER_END(parse_request);