mirror of
https://github.com/nginx/nginx.git
synced 2025-02-25 18:55:26 -06:00
delete useless r->cache->uses
This commit is contained in:
parent
ae7e8886f6
commit
fa524e9063
@ -62,7 +62,6 @@ struct ngx_http_cache_s {
|
||||
off_t length;
|
||||
|
||||
ngx_uint_t min_uses;
|
||||
ngx_uint_t uses;
|
||||
ngx_uint_t error;
|
||||
ngx_uint_t valid_msec;
|
||||
|
||||
|
@ -172,9 +172,8 @@ ngx_http_file_cache_open(ngx_http_request_t *r)
|
||||
|
||||
rc = ngx_http_file_cache_exists(cache, c);
|
||||
|
||||
ngx_log_debug3(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
|
||||
"http file cache exists: %i u:%ui e:%d",
|
||||
rc, c->uses, c->exists);
|
||||
ngx_log_debug2(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
|
||||
"http file cache exists: %i e:%d", rc, c->exists);
|
||||
|
||||
if (rc == NGX_ERROR) {
|
||||
return rc;
|
||||
@ -332,8 +331,6 @@ ngx_http_file_cache_open(ngx_http_request_t *r)
|
||||
|
||||
if (c->valid_sec < now) {
|
||||
|
||||
c->uses = c->min_uses;
|
||||
|
||||
ngx_log_debug2(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
|
||||
"http file cache expired: %T %T", c->valid_sec, now);
|
||||
|
||||
@ -440,7 +437,6 @@ done:
|
||||
ngx_queue_insert_head(&cache->sh->queue, &fcn->queue);
|
||||
|
||||
c->uniq = fcn->uniq;
|
||||
c->uses = fcn->uses;
|
||||
c->error = fcn->error;
|
||||
c->node = fcn;
|
||||
|
||||
|
@ -577,8 +577,8 @@ ngx_http_upstream_cache(ngx_http_request_t *r, ngx_http_upstream_t *u)
|
||||
|
||||
rc = ngx_http_file_cache_open(r);
|
||||
|
||||
ngx_log_debug2(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
|
||||
"http upstream cache: %i u:%ui", rc, c->uses);
|
||||
ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
|
||||
"http upstream cache: %i", rc);
|
||||
|
||||
if (rc == NGX_OK) {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user