commit | 931d313311c107508c1480b643875ea6f1d6908c | [log] [tgz] |
---|---|---|
author | Igor Sysoev <igor@sysoev.ru> | Wed Apr 01 13:05:38 2009 +0000 |
committer | Igor Sysoev <igor@sysoev.ru> | Wed Apr 01 13:05:38 2009 +0000 |
tree | 3fcd513670e8caacc6ad97cfed938d8472a27b2f | |
parent | a697c8e574baf87ab61c1cf0e27e756caa1bb270 [diff] |
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 index 42315f7..d000a9d 100644 --- a/src/http/ngx_http_file_cache.c +++ b/src/http/ngx_http_file_cache.c
@@ -448,6 +448,7 @@ fcn->valid_sec = 0; fcn->uniq = 0; fcn->body_start = 0; + fcn->length = 0; done: