comparison src/http/ngx_http_upstream.c @ 2927:55ceaef03d34

proxy_cache_use_stale/fastcgi_cache_use_stale updating
author Igor Sysoev <igor@sysoev.ru>
date Sat, 06 Jun 2009 18:49:47 +0000
parents 80a314b63c56
children 37b7cd336fdf
comparison
equal deleted inserted replaced
2926:80a314b63c56 2927:55ceaef03d34
578 rc = ngx_http_file_cache_open(r); 578 rc = ngx_http_file_cache_open(r);
579 579
580 ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, 580 ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
581 "http upstream cache: %i", rc); 581 "http upstream cache: %i", rc);
582 582
583 if (rc == NGX_HTTP_CACHE_UPDATING) {
584 if (u->conf->cache_use_stale & NGX_HTTP_UPSTREAM_FT_UPDATING) {
585 rc = NGX_OK;
586
587 } else {
588 rc = NGX_HTTP_CACHE_STALE;
589 }
590 }
591
583 if (rc == NGX_OK) { 592 if (rc == NGX_OK) {
584 593
585 rc = ngx_http_upstream_cache_send(r, u); 594 rc = ngx_http_upstream_cache_send(r, u);
586 595
587 if (rc != NGX_HTTP_UPSTREAM_INVALID_HEADER) { 596 if (rc != NGX_HTTP_UPSTREAM_INVALID_HEADER) {