# HG changeset patch # User Igor Sysoev # Date 1238591138 0 # Node ID ba1f3cdba7257a5820b589ef39efb98aee6fca20 # Parent 73571521c2eb76483b18577b7b38838fc91791eb zero cache file length, this fixes full cache purging and hogging CPU by the cache manager after this diff --git a/src/http/ngx_http_file_cache.c b/src/http/ngx_http_file_cache.c --- a/src/http/ngx_http_file_cache.c +++ b/src/http/ngx_http_file_cache.c @@ -448,6 +448,7 @@ renew: fcn->valid_sec = 0; fcn->uniq = 0; fcn->body_start = 0; + fcn->length = 0; done: