[FileRepo] Added some cache code based on the problems in r97512.
authorAaron Schulz <aschulz@wikimedia.org>
Fri, 6 Apr 2012 17:38:38 +0000 (10:38 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Fri, 6 Apr 2012 19:39:58 +0000 (12:39 -0700)
commit5d585a423f7bafc45ae67f4cf1cad2c1b928fbf7
treeb9730ece5d0ffbf46a3acebb1f175d538778b801
parent4feb922b888eb447af598acc4911a59f1ac550a2
[FileRepo] Added some cache code based on the problems in r97512.

* Made RepoGroup avoid caching files with large metadata and also reduced max cache size to 500 to avoid OOMs.
* Factored out a pingCache() function in RepoGroup.

Change-Id: I52f6413b9eb8b11fbffbde0f0e7acf97c7a2ff89
includes/filerepo/RepoGroup.php
includes/filerepo/file/File.php
includes/filerepo/file/LocalFile.php