~glennpratt/nginx/apci

Viewing all changes in revision 3233.

  • Committer: is
  • Date: 2011-07-24 16:47:31 UTC
  • Revision ID: svn-v4:73f98a42-aea0-e011-b76d-00259023448c:nginx/trunk:3968
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
operaiton 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.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: