comparison src/http/ngx_http_upstream.h @ 5905:2f7e557eab5b

Cache: proxy_cache_lock_age and friends. Once this age is reached, the cache lock is discarded and another request can acquire the lock. Requests which failed to acquire the lock are not allowed to cache the response.
author Roman Arutyunyan <arut@nginx.com>
date Tue, 18 Nov 2014 20:41:12 +0300
parents 973ee2276300
children 634da79665d3
comparison
equal deleted inserted replaced
5904:abb466a57a22 5905:2f7e557eab5b
181 ngx_uint_t cache_use_stale; 181 ngx_uint_t cache_use_stale;
182 ngx_uint_t cache_methods; 182 ngx_uint_t cache_methods;
183 183
184 ngx_flag_t cache_lock; 184 ngx_flag_t cache_lock;
185 ngx_msec_t cache_lock_timeout; 185 ngx_msec_t cache_lock_timeout;
186 ngx_msec_t cache_lock_age;
186 187
187 ngx_flag_t cache_revalidate; 188 ngx_flag_t cache_revalidate;
188 189
189 ngx_array_t *cache_valid; 190 ngx_array_t *cache_valid;
190 ngx_array_t *cache_bypass; 191 ngx_array_t *cache_bypass;