diff src/http/ngx_http_cache.h @ 5968:99639bfdfa2a

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.
author Roman Arutyunyan <arut@nginx.com>
date Mon, 02 Feb 2015 19:38:35 +0300
parents e9effef98874
children d698c300b9ff
line wrap: on
line diff
--- 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 */
 };