From f8fecbc94d204c4ce1a86556d2642af00146995e Mon Sep 17 00:00:00 2001 From: Roman Arutyunyan Date: Mon, 2 Feb 2015 19:38:35 +0300 Subject: Cache: added temp_path to file cache. If use_temp_path is set to off, a subdirectory "temp" is created in the cache directory. It's used instead of proxy_temp_path and friends for caching upstream response. --- src/http/ngx_http_cache.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/http/ngx_http_cache.h') diff --git a/src/http/ngx_http_cache.h b/src/http/ngx_http_cache.h index 27322b0af..a7d41c6f1 100644 --- a/src/http/ngx_http_cache.h +++ b/src/http/ngx_http_cache.h @@ -142,6 +142,7 @@ struct ngx_http_file_cache_s { ngx_slab_pool_t *shpool; ngx_path_t *path; + ngx_path_t *temp_path; off_t max_size; size_t bsize; @@ -155,9 +156,6 @@ struct ngx_http_file_cache_s { ngx_msec_t loader_threshold; ngx_shm_zone_t *shm_zone; - - ngx_uint_t use_temp_path; - /* unsigned use_temp_path:1 */ }; -- cgit