diff options
author | Igor Sysoev <igor@sysoev.ru> | 2008-06-23 17:35:34 +0400 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2008-06-23 17:35:34 +0400 |
commit | 3e6f74da0556265b7ad3fbdb629f2898b1e1936f (patch) | |
tree | a885bb7c72140fe73c4b15207db61cdee8187493 /src/core/ngx_open_file_cache.c | |
parent | ce1e64f404db86230f8c55cac7d9a9b72d9858a0 (diff) |
initialize of.uniq in ngx_open_cached_file()
Diffstat (limited to 'src/core/ngx_open_file_cache.c')
-rw-r--r-- | src/core/ngx_open_file_cache.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/ngx_open_file_cache.c b/src/core/ngx_open_file_cache.c index d9ec1881b..4e4c1c5bd 100644 --- a/src/core/ngx_open_file_cache.c +++ b/src/core/ngx_open_file_cache.c @@ -189,7 +189,9 @@ ngx_open_cached_file(ngx_open_file_cache_t *cache, ngx_str_t *name, } 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) { |