comparison src/http/ngx_http_file_cache.c @ 2952:0998606fbfd4

$upstream_cache_status
author Igor Sysoev <igor@sysoev.ru>
date Thu, 18 Jun 2009 13:34:47 +0000
parents 92cc13f7487d
children c466605d9426
comparison
equal deleted inserted replaced
2951:5acd98486a33 2952:0998606fbfd4
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)