diff options
author | Igor Sysoev <igor@sysoev.ru> | 2011-07-24 16:47:31 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2011-07-24 16:47:31 +0000 |
commit | c1250b6a491b221b546d9b0f8bbd3ed762f47b67 (patch) | |
tree | 810cd8a829e98f17113154799fe32554c04c4b1a /src/os/unix/ngx_files.h | |
parent | bb389f6111ce8058fadbc6754b301f05890c5dbe (diff) | |
download | nginx-c1250b6a491b221b546d9b0f8bbd3ed762f47b67.tar.gz nginx-c1250b6a491b221b546d9b0f8bbd3ed762f47b67.zip |
The cache loader performs two tasks: inserting cache objects in inactivity
list and evaluating total cache size. Reading just directory is enough for
this purpose. Elimination of reading cache files saves at least one disk I/O
operation per file.
Preparation for elimination of reading cache files by cache loader:
removing dependencies on the reading:
*) cache node valid_sec and valid_msec are used only for caching errors;
*) upstream buffer size can be used instead of cache node body_start.
Diffstat (limited to 'src/os/unix/ngx_files.h')
0 files changed, 0 insertions, 0 deletions