Mercurial > hg > nginx
diff src/http/ngx_http_upstream.h @ 5949:634da79665d3
Upstream: refactored proxy_cache and friends.
The configuration handling code has changed to look similar to the proxy_store
directive and friends. This simplifies adding variable support in the following
patch.
No functional changes.
author | Valentin Bartenev <vbart@nginx.com> |
---|---|
date | Mon, 22 Dec 2014 12:59:02 +0300 |
parents | 2f7e557eab5b |
children | 610832763648 |
line wrap: on
line diff
--- a/src/http/ngx_http_upstream.h Mon Dec 22 12:58:59 2014 +0300 +++ b/src/http/ngx_http_upstream.h Mon Dec 22 12:59:02 2014 +0300 @@ -175,7 +175,7 @@ ngx_http_upstream_local_t *local; #if (NGX_HTTP_CACHE) - ngx_shm_zone_t *cache; + ngx_shm_zone_t *cache_zone; ngx_uint_t cache_min_uses; ngx_uint_t cache_use_stale; @@ -195,6 +195,9 @@ ngx_array_t *store_lengths; ngx_array_t *store_values; +#if (NGX_HTTP_CACHE) + signed cache:2; +#endif signed store:2; unsigned intercept_404:1; unsigned change_buffering:1;