Mercurial > hg > nginx
comparison src/http/ngx_http_file_cache.c @ 3092:4f28e63e42b4 stable-0.7
merge r2953, r2958, r3084:
*) $upstream_cache_status
*) clean cache updating state if a response has uncacheable code or
cache prohibitive headers
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 07 Sep 2009 09:49:51 +0000 |
parents | f892042956e3 |
children | 1f3cd08ebb82 |
comparison
equal
deleted
inserted
replaced
3091:ecc8d537e9a9 | 3092:4f28e63e42b4 |
---|---|
33 ngx_http_cache_t *c); | 33 ngx_http_cache_t *c); |
34 static ngx_int_t ngx_http_file_cache_delete_file(ngx_tree_ctx_t *ctx, | 34 static ngx_int_t ngx_http_file_cache_delete_file(ngx_tree_ctx_t *ctx, |
35 ngx_str_t *path); | 35 ngx_str_t *path); |
36 | 36 |
37 | 37 |
38 ngx_str_t ngx_http_cache_status[] = { | |
39 ngx_string("MISS"), | |
40 ngx_string("EXPIRED"), | |
41 ngx_string("STALE"), | |
42 ngx_string("UPDATING"), | |
43 ngx_string("HIT") | |
44 }; | |
45 | |
46 | |
38 static u_char ngx_http_file_cache_key[] = { LF, 'K', 'E', 'Y', ':', ' ' }; | 47 static u_char ngx_http_file_cache_key[] = { LF, 'K', 'E', 'Y', ':', ' ' }; |
39 | 48 |
40 | 49 |
41 static ngx_int_t | 50 static ngx_int_t |
42 ngx_http_file_cache_init(ngx_shm_zone_t *shm_zone, void *data) | 51 ngx_http_file_cache_init(ngx_shm_zone_t *shm_zone, void *data) |