From 3476b2f30cdf156624a329902adf8995afcc998d Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Wed, 8 Feb 2012 20:34:24 +0000 Subject: [PATCH] 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). --- includes/filerepo/backend/SwiftFileBackend.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 ); } -- 2.20.1