aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2009-06-22 09:10:50 +0000
committerIgor Sysoev <igor@sysoev.ru>2009-06-22 09:10:50 +0000
commit704462ac85ec5afffb79abc874664d9bbf679ece (patch)
tree2a06491189844d6d61cef619b510666c7f8bde00
parent7ae6e18c84d4d82287326b81f9d21a8ede8cb88a (diff)
downloadnginx-704462ac85ec5afffb79abc874664d9bbf679ece.tar.gz
nginx-704462ac85ec5afffb79abc874664d9bbf679ece.zip
fix building --without-http-cache, broken in r2953
-rw-r--r--src/http/ngx_http_upstream.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c
index 16a027a8a..add5b21d9 100644
--- a/src/http/ngx_http_upstream.c
+++ b/src/http/ngx_http_upstream.c
@@ -318,10 +318,14 @@ static ngx_http_variable_t ngx_http_upstream_vars[] = {
ngx_http_upstream_response_length_variable, 0,
NGX_HTTP_VAR_NOHASH|NGX_HTTP_VAR_NOCACHEABLE, 0 },
+#if (NGX_HTTP_CACHE)
+
{ ngx_string("upstream_cache_status"), NULL,
ngx_http_upstream_cache_status, 0,
NGX_HTTP_VAR_NOHASH|NGX_HTTP_VAR_NOCACHEABLE, 0 },
+#endif
+
{ ngx_null_string, NULL, NULL, 0, 0, 0 }
};