diff options
| author | Roman Arutyunyan <arut@nginx.com> | 2014-11-18 20:41:12 +0300 |
|---|---|---|
| committer | Roman Arutyunyan <arut@nginx.com> | 2014-11-18 20:41:12 +0300 |
| commit | 2628cc11d44c373e64ac0bc3a4b0e5eac69f371d (patch) | |
| tree | 8d2d440e06d5c29924b4bd030dcf2624a4b7f0e3 /src/http/ngx_http_cache.h | |
| parent | 20d41493d428f123cc867590d693ef7e14a4ea11 (diff) | |
| download | nginx-2628cc11d44c373e64ac0bc3a4b0e5eac69f371d.tar.gz nginx-2628cc11d44c373e64ac0bc3a4b0e5eac69f371d.tar.bz2 | |
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.
Diffstat (limited to '')
| -rw-r--r-- | src/http/ngx_http_cache.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/http/ngx_http_cache.h b/src/http/ngx_http_cache.h index f89766d58..033882e53 100644 --- a/src/http/ngx_http_cache.h +++ b/src/http/ngx_http_cache.h @@ -57,6 +57,7 @@ typedef struct { time_t valid_sec; size_t body_start; off_t fs_size; + ngx_msec_t lock_time; } ngx_http_file_cache_node_t; @@ -91,6 +92,8 @@ struct ngx_http_cache_s { ngx_http_file_cache_node_t *node; ngx_msec_t lock_timeout; + ngx_msec_t lock_age; + ngx_msec_t lock_time; ngx_msec_t wait_time; ngx_event_t wait_event; |
