From: Aaron Schulz Date: Wed, 8 Feb 2012 20:34:24 +0000 (+0000) Subject: Bumped $maxContCacheSize to handle container sharding a bit better. However, wikis... X-Git-Tag: 1.31.0-rc.0~24855 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/operations/?a=commitdiff_plain;h=3476b2f30cdf156624a329902adf8995afcc998d;p=lhc%2Fweb%2Fwiklou.git Bumped $maxContCacheSize to handle container sharding a bit better. However, wikis large enough to need sharding would probably have sane 404 handling anyway, which avoids the need to hit a bunch of containers in one request anyway (like rendering thumbnails on parse). --- diff --git a/includes/filerepo/backend/SwiftFileBackend.php b/includes/filerepo/backend/SwiftFileBackend.php index 5ed126134c..2ad2d91ba0 100644 --- a/includes/filerepo/backend/SwiftFileBackend.php +++ b/includes/filerepo/backend/SwiftFileBackend.php @@ -24,7 +24,7 @@ class SwiftFileBackend extends FileBackendStore { protected $auth; // Swift authentication handler protected $authTTL; // integer seconds protected $swiftAnonUser; // string; username to handle unauthenticated requests - protected $maxContCacheSize = 20; // integer; max containers with entries + protected $maxContCacheSize = 100; // integer; max containers with entries /** @var CF_Connection */ protected $conn; // Swift connection handle @@ -854,7 +854,7 @@ class SwiftFileBackendFileList implements Iterator { if ( !$this->valid() && count( $this->bufferIter ) ) { $this->bufferAfter = end( $this->bufferIter ); $this->bufferIter = $this->backend->getFileListPageInternal( - $this->container, $this->dir, $this->bufferAfter, self::PAGE_SIZE + $this->container, $this->dir, $this->bufferAfter, self::PAGE_SIZE ); } } @@ -863,7 +863,7 @@ class SwiftFileBackendFileList implements Iterator { $this->pos = 0; $this->bufferAfter = null; $this->bufferIter = $this->backend->getFileListPageInternal( - $this->container, $this->dir, $this->bufferAfter, self::PAGE_SIZE + $this->container, $this->dir, $this->bufferAfter, self::PAGE_SIZE ); }