diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2009-05-05 15:17:00 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2009-05-05 15:17:00 +0000 |
| commit | b4097d6093aa671da2e0681b36ddb63c5df45022 (patch) | |
| tree | 55a7aff8e7424378c6fbcb116bb24d617fffc78e /src | |
| parent | d4a71fb8441c3c2e8ccecc18391ff97c0a3cde57 (diff) | |
| download | nginx-b4097d6093aa671da2e0681b36ddb63c5df45022.tar.gz nginx-b4097d6093aa671da2e0681b36ddb63c5df45022.tar.bz2 | |
proxy/fastcgi_cache_use_stale http_50x did not work
Diffstat (limited to 'src')
| -rw-r--r-- | src/http/ngx_http_upstream.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c index 2cf45625d..74c9b20f1 100644 --- a/src/http/ngx_http_upstream.c +++ b/src/http/ngx_http_upstream.c @@ -1475,10 +1475,6 @@ ngx_http_upstream_test_next(ngx_http_request_t *r, ngx_http_upstream_t *u) ngx_uint_t status; ngx_http_upstream_next_t *un; - if (!(u->conf->next_upstream & NGX_HTTP_UPSTREAM_FT_STATUS)) { - return NGX_DECLINED; - } - status = u->headers_in.status_n; for (un = ngx_http_upstream_next_errors; un->status; un++) { @@ -1494,10 +1490,7 @@ ngx_http_upstream_test_next(ngx_http_request_t *r, ngx_http_upstream_t *u) #if (NGX_HTTP_CACHE) - if (u->peer.tries == 0 - && u->stale_cache - && (u->conf->cache_use_stale & un->mask)) - { + if (u->stale_cache && (u->conf->cache_use_stale & un->mask)) { ngx_http_upstream_finalize_request(r, u, ngx_http_upstream_cache_send(r, u)); return NGX_OK; |
