Merge "[FileBackend] Tweaked various cache parameters and bumped tiny Swift auth...
authorBrion VIBBER <brion@wikimedia.org>
Thu, 26 Apr 2012 23:32:32 +0000 (23:32 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Thu, 26 Apr 2012 23:32:32 +0000 (23:32 +0000)
1  2 
includes/filerepo/backend/FileBackendStore.php
includes/filerepo/backend/SwiftFileBackend.php

   * @since 1.19
   */
  abstract class FileBackendStore extends FileBackend {
 +      /** @var BagOStuff */
 +      protected $memCache;
 +
        /** @var Array Map of paths to small (RAM/disk) cache items */
        protected $cache = array(); // (storage path => key => value)
-       protected $maxCacheSize = 100; // integer; max paths with entries
+       protected $maxCacheSize = 300; // integer; max paths with entries
        /** @var Array Map of paths to large (RAM/disk) cache items */
        protected $expensiveCache = array(); // (storage path => key => value)
-       protected $maxExpensiveCacheSize = 10; // integer; max paths with entries
+       protected $maxExpensiveCacheSize = 5; // integer; max paths with entries
  
        /** @var Array Map of container names to sharding settings */
        protected $shardViaHashLevels = array(); // (container name => config array)