comparison src/http/ngx_http_file_cache.c @ 2632:ba1f3cdba725

zero cache file length, this fixes full cache purging and hogging CPU by the cache manager after this
author Igor Sysoev <igor@sysoev.ru>
date Wed, 01 Apr 2009 13:05:38 +0000
parents 73571521c2eb
children 627dee566f6c
comparison
equal deleted inserted replaced
2631:73571521c2eb 2632:ba1f3cdba725
446 fcn->error = 0; 446 fcn->error = 0;
447 fcn->exists = 0; 447 fcn->exists = 0;
448 fcn->valid_sec = 0; 448 fcn->valid_sec = 0;
449 fcn->uniq = 0; 449 fcn->uniq = 0;
450 fcn->body_start = 0; 450 fcn->body_start = 0;
451 fcn->length = 0;
451 452
452 done: 453 done:
453 454
454 fcn->expire = ngx_time() + cache->inactive; 455 fcn->expire = ngx_time() + cache->inactive;
455 456