mirror of
https://github.com/nginx/nginx.git
synced 2025-06-11 20:53:30 +08:00
fix r3708 and r3695: valid_sec is set only for caching error status codes
This commit is contained in:
parent
6af21b7cda
commit
18b36e5035
@ -932,7 +932,7 @@ ngx_http_file_cache_free(ngx_http_request_t *r, ngx_temp_file_t *tf)
|
||||
fcn->valid_msec = c->valid_msec;
|
||||
fcn->error = c->error;
|
||||
|
||||
} else if (fcn->valid_sec == 0 && fcn->count == 0) {
|
||||
} else if (!fcn->exists && fcn->count == 0) {
|
||||
ngx_queue_remove(&fcn->queue);
|
||||
ngx_rbtree_delete(&cache->sh->rbtree, &fcn->node);
|
||||
ngx_slab_free_locked(cache->shpool, fcn);
|
||||
|
Loading…
Reference in New Issue
Block a user