error status codes could be cached for next request only,
the bug has been introduced in r3712
This commit is contained in:
parent
a589d16bf0
commit
e597feff7d
1 changed files with 5 additions and 2 deletions
|
@ -927,10 +927,13 @@ ngx_http_file_cache_free(ngx_http_cache_t *c, ngx_temp_file_t *tf)
|
|||
}
|
||||
|
||||
if (c->error) {
|
||||
fcn->valid_sec = c->valid_sec;
|
||||
fcn->valid_msec = c->valid_msec;
|
||||
fcn->error = c->error;
|
||||
|
||||
if (c->valid_sec) {
|
||||
fcn->valid_sec = c->valid_sec;
|
||||
fcn->valid_msec = c->valid_msec;
|
||||
}
|
||||
|
||||
} else if (!fcn->exists && fcn->count == 0 && c->min_uses == 1) {
|
||||
ngx_queue_remove(&fcn->queue);
|
||||
ngx_rbtree_delete(&cache->sh->rbtree, &fcn->node);
|
||||
|
|
Loading…
Reference in a new issue