Klaus Demo nginx / b4097d6
proxy/fastcgi_cache_use_stale http_50x did not work Igor Sysoev 10 years ago
1 changed file(s) with 1 addition(s) and 8 deletion(s). Raw diff Collapse all Expand all
14741474 ngx_uint_t status;
14751475 ngx_http_upstream_next_t *un;
14761476
1477 if (!(u->conf->next_upstream & NGX_HTTP_UPSTREAM_FT_STATUS)) {
1478 return NGX_DECLINED;
1479 }
1480
14811477 status = u->headers_in.status_n;
14821478
14831479 for (un = ngx_http_upstream_next_errors; un->status; un++) {
14931489
14941490 #if (NGX_HTTP_CACHE)
14951491
1496 if (u->peer.tries == 0
1497 && u->stale_cache
1498 && (u->conf->cache_use_stale & un->mask))
1499 {
1492 if (u->stale_cache && (u->conf->cache_use_stale & un->mask)) {
15001493 ngx_http_upstream_finalize_request(r, u,
15011494 ngx_http_upstream_cache_send(r, u));
15021495 return NGX_OK;