filebackend: improved "adviseStat" performance
authorAaron Schulz <aschulz@wikimedia.org>
Thu, 7 Nov 2013 20:51:10 +0000 (12:51 -0800)
committerTim Starling <tstarling@wikimedia.org>
Fri, 8 Nov 2013 04:35:57 +0000 (04:35 +0000)
commit2afdc066f52b54faf63f9c980f7ef6a7841dd094
tree6e88bdc5a3b7eb8171b509c56d8ada73fc0690d6
parentc674d4c90c40d18187d893ed7a7ea94f43a1a624
filebackend: improved "adviseStat" performance

* Use the normal page size instead of limiting it way down to the cache
  size. Track the stat information in the pages and load into into the
  stat cache as entries are accessed. This should also be less prone to
  evictions causing HEAD requests (or memcached hits).
* Also bumped CACHE_CHEAP_SIZE up to 500.
* Fix a few doc bits

Change-Id: I8d44a072e7bcc56c83d8d9c8c9ac9864530bccf8
includes/filebackend/FileBackendStore.php
includes/filebackend/SwiftFileBackend.php