comparison src/http/ngx_http_upstream.c @ 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 7d7eac6e31df
children 88d55e5934f7
comparison
equal deleted inserted replaced
5904:abb466a57a22 5905:2f7e557eab5b
782 c->body_start = u->conf->buffer_size; 782 c->body_start = u->conf->buffer_size;
783 c->file_cache = u->conf->cache->data; 783 c->file_cache = u->conf->cache->data;
784 784
785 c->lock = u->conf->cache_lock; 785 c->lock = u->conf->cache_lock;
786 c->lock_timeout = u->conf->cache_lock_timeout; 786 c->lock_timeout = u->conf->cache_lock_timeout;
787 c->lock_age = u->conf->cache_lock_age;
787 788
788 u->cache_status = NGX_HTTP_CACHE_MISS; 789 u->cache_status = NGX_HTTP_CACHE_MISS;
789 } 790 }
790 791
791 rc = ngx_http_file_cache_open(r); 792 rc = ngx_http_file_cache_open(r);