Mercurial > hg > nginx
comparison src/http/ngx_http_upstream.c @ 5960:e9effef98874
Upstream: use_temp_path parameter of proxy_cache_path and friends.
When set to "off", temporary files for cacheable responses will be stored
inside cache directory.
author | Valentin Bartenev <vbart@nginx.com> |
---|---|
date | Fri, 26 Dec 2014 16:22:59 +0300 |
parents | f7584d7c0ccb |
children | 0a198a517eaf |
comparison
equal
deleted
inserted
replaced
5959:f7584d7c0ccb | 5960:e9effef98874 |
---|---|
2675 p->temp_file->pool = r->pool; | 2675 p->temp_file->pool = r->pool; |
2676 | 2676 |
2677 if (p->cacheable) { | 2677 if (p->cacheable) { |
2678 p->temp_file->persistent = 1; | 2678 p->temp_file->persistent = 1; |
2679 | 2679 |
2680 #if (NGX_HTTP_CACHE) | |
2681 if (r->cache && !r->cache->file_cache->use_temp_path) { | |
2682 p->temp_file->file.name = r->cache->file.name; | |
2683 p->temp_file->path = r->cache->file_cache->path; | |
2684 p->temp_file->prefix = 1; | |
2685 } | |
2686 #endif | |
2687 | |
2680 } else { | 2688 } else { |
2681 p->temp_file->log_level = NGX_LOG_WARN; | 2689 p->temp_file->log_level = NGX_LOG_WARN; |
2682 p->temp_file->warn = "an upstream response is buffered " | 2690 p->temp_file->warn = "an upstream response is buffered " |
2683 "to a temporary file"; | 2691 "to a temporary file"; |
2684 } | 2692 } |