comparison src/http/ngx_http_cache.h @ 2927:55ceaef03d34

proxy_cache_use_stale/fastcgi_cache_use_stale updating
author Igor Sysoev <igor@sysoev.ru>
date Sat, 06 Jun 2009 18:49:47 +0000
parents 80a314b63c56
children 0998606fbfd4
comparison
equal deleted inserted replaced
2926:80a314b63c56 2927:55ceaef03d34
12 #include <ngx_core.h> 12 #include <ngx_core.h>
13 #include <ngx_http.h> 13 #include <ngx_http.h>
14 14
15 15
16 #define NGX_HTTP_CACHE_STALE 1 16 #define NGX_HTTP_CACHE_STALE 1
17 #define NGX_HTTP_CACHE_UPDATING 2
17 18
18 #define NGX_HTTP_CACHE_KEY_LEN 16 19 #define NGX_HTTP_CACHE_KEY_LEN 16
19 20
20 21
21 typedef struct { 22 typedef struct {
34 unsigned count:20; 35 unsigned count:20;
35 unsigned uses:10; 36 unsigned uses:10;
36 unsigned valid_msec:10; 37 unsigned valid_msec:10;
37 unsigned error:10; 38 unsigned error:10;
38 unsigned exists:1; 39 unsigned exists:1;
39 /* 13 unused bits */ 40 unsigned updating:1;
41 /* 12 unused bits */
40 42
41 ngx_file_uniq_t uniq; 43 ngx_file_uniq_t uniq;
42 time_t expire; 44 time_t expire;
43 time_t valid_sec; 45 time_t valid_sec;
44 size_t body_start; 46 size_t body_start;