From 931d313311c107508c1480b643875ea6f1d6908c Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Wed, 1 Apr 2009 13:05:38 +0000 Subject: [PATCH] zero cache file length, this fixes full cache purging and hogging CPU by the cache manager after this --- src/http/ngx_http_file_cache.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/http/ngx_http_file_cache.c b/src/http/ngx_http_file_cache.c index 42315f770..d000a9d14 100644 --- 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: