comparison src/http/ngx_http_file_cache.c @ 502:f0cac61857ae NGINX_0_8_3

nginx 0.8.3 *) Feature: the $upstream_cache_status variable. *) Bugfix: nginx could not be built on MacOSX 10.6. the bug had appeared in 0.8.2. *) Bugfix: nginx could not be built --without-http-cache; the bug had appeared in 0.8.2. *) Bugfix: a segmentation fault occurred in worker process, if a backend 401 error was intercepted and the backend did not set the "WWW-Authenticate" response header line. Thanks to Eugene Mychlo.
author Igor Sysoev <http://sysoev.ru>
date Fri, 19 Jun 2009 00:00:00 +0400
parents 13b908d5338a
children 43cc6f0b77ce
comparison
equal deleted inserted replaced
501:531b6bbae529 502:f0cac61857ae
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)