]> git.kaiwu.me - nginx.git/commit
The cache loader performs two tasks: inserting cache objects in inactivity
authorIgor Sysoev <igor@sysoev.ru>
Sun, 24 Jul 2011 16:47:31 +0000 (16:47 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Sun, 24 Jul 2011 16:47:31 +0000 (16:47 +0000)
commitc1250b6a491b221b546d9b0f8bbd3ed762f47b67
tree810cd8a829e98f17113154799fe32554c04c4b1a
parentbb389f6111ce8058fadbc6754b301f05890c5dbe
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.
src/http/ngx_http_file_cache.c