1
0
mirror of https://github.com/apache/httpd.git synced 2025-07-29 09:01:18 +03:00

mod_cache: Add the cache_status hook to register the final cache

decision hit/miss/revalidate. Add optional support for an X-Cache
and/or an X-Cache-Detail header to add the cache status to the
response. PR48241


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1001639 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Graham Leggett
2010-09-27 09:20:40 +00:00
parent 2b2ea03b94
commit 61b7c8574b
7 changed files with 366 additions and 6 deletions

View File

@ -92,11 +92,12 @@ extern "C" {
#define DEFAULT_CACHE_EXPIRE MSEC_ONE_HR
#define DEFAULT_CACHE_LMFACTOR (0.1)
#define DEFAULT_CACHE_MAXAGE 5
#define DEFAULT_X_CACHE 0
#define DEFAULT_X_CACHE_DETAIL 0
#define DEFAULT_CACHE_LOCKPATH "/mod_cache-lock"
#define CACHE_LOCKNAME_KEY "mod_cache-lockname"
#define CACHE_LOCKFILE_KEY "mod_cache-lockfile"
/**
* cache_util.c
*/
@ -168,8 +169,19 @@ typedef struct {
/** run within the quick handler */
int quick;
int quick_set;
int x_cache;
int x_cache_set;
int x_cache_detail;
int x_cache_detail_set;
} cache_server_conf;
typedef struct {
int x_cache;
int x_cache_set;
int x_cache_detail;
int x_cache_detail_set;
} cache_dir_conf;
/* A linked-list of authn providers. */
typedef struct cache_provider_list cache_provider_list;