comparison src/http/ngx_http_cache.h @ 480:549994537f15 NGINX_0_7_52

nginx 0.7.52 *) Feature: the first native Windows binary release. *) Bugfix: in processing HEAD method while caching. *) Bugfix: in processing the "If-Modified-Since", "If-Range", etc. client request header lines while caching. *) Bugfix: now the "Set-Cookie" and "P3P" header lines are hidden in cacheable responses. *) Bugfix: if nginx was built with the ngx_http_perl_module and with a perl which supports threads, then during a master process exit the message "panic: MUTEX_LOCK" might be issued. *) Bugfix: nginx could not be built --without-http-cache; the bug had appeared in 0.7.48. *) Bugfix: nginx could not be built on platforms different from i386, amd64, sparc, and ppc; the bug had appeared in 0.7.42.
author Igor Sysoev <http://sysoev.ru>
date Mon, 20 Apr 2009 00:00:00 +0400
parents 56baf312c1b5
children 207ae3ff0444
comparison
equal deleted inserted replaced
479:eb4fdebda673 480:549994537f15
92 u_short header_start; 92 u_short header_start;
93 u_short body_start; 93 u_short body_start;
94 } ngx_http_file_cache_header_t; 94 } ngx_http_file_cache_header_t;
95 95
96 96
97 typedef struct {
98 ngx_rbtree_t rbtree;
99 ngx_rbtree_node_t sentinel;
100 ngx_queue_t queue;
101 ngx_atomic_t cold;
102 off_t size;
103 } ngx_http_file_cache_sh_t;
104
105
97 struct ngx_http_file_cache_s { 106 struct ngx_http_file_cache_s {
98 ngx_rbtree_t *rbtree; 107 ngx_http_file_cache_sh_t *sh;
99 ngx_queue_t *queue;
100 ngx_slab_pool_t *shpool; 108 ngx_slab_pool_t *shpool;
101 109
102 ngx_path_t *path; 110 ngx_path_t *path;
103
104 ngx_atomic_t *cold;
105 off_t *size;
106 111
107 off_t max_size; 112 off_t max_size;
108 size_t bsize; 113 size_t bsize;
109 114
110 time_t inactive; 115 time_t inactive;