commit | 3e6f74da0556265b7ad3fbdb629f2898b1e1936f | [log] [tgz] |
---|---|---|
author | Igor Sysoev <igor@sysoev.ru> | Mon Jun 23 13:35:34 2008 +0000 |
committer | Igor Sysoev <igor@sysoev.ru> | Mon Jun 23 13:35:34 2008 +0000 |
tree | a885bb7c72140fe73c4b15207db61cdee8187493 | |
parent | ce1e64f404db86230f8c55cac7d9a9b72d9858a0 [diff] [blame] |
initialize of.uniq in ngx_open_cached_file()
diff --git a/src/core/ngx_open_file_cache.c b/src/core/ngx_open_file_cache.c index d9ec188..4e4c1c5 100644 --- a/src/core/ngx_open_file_cache.c +++ b/src/core/ngx_open_file_cache.c
@@ -189,7 +189,9 @@ } if ((file->event && file->use_event) - || (file->event == NULL && now - file->created < of->valid)) + || (file->event == NULL + && (of->uniq == 0 || of->uniq == file->uniq) + && now - file->created < of->valid)) { if (file->err == 0) {