summaryrefslogtreecommitdiffhomepage
path: root/src/http/ngx_http_upstream.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/http/ngx_http_upstream.c')
-rw-r--r--src/http/ngx_http_upstream.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c
index 44b8b947c..ede6d2ad5 100644
--- a/src/http/ngx_http_upstream.c
+++ b/src/http/ngx_http_upstream.c
@@ -633,11 +633,9 @@ ngx_http_upstream_cache(ngx_http_request_t *r, ngx_http_upstream_t *u)
if (c == NULL) {
- if (u->conf->no_cache) {
- rc = ngx_http_cache(r, u->conf->no_cache);
- if (rc != NGX_OK) {
- return rc;
- }
+ rc = ngx_http_test_predicates(r, u->conf->no_cache);
+ if (rc != NGX_OK) {
+ return rc;
}
if (!(r->method & u->conf->cache_methods)) {