summaryrefslogtreecommitdiff
path: root/includes/site/SiteSQLStore.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/site/SiteSQLStore.php')
-rw-r--r--includes/site/SiteSQLStore.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/site/SiteSQLStore.php b/includes/site/SiteSQLStore.php
index d77f07be..e3230fff 100644
--- a/includes/site/SiteSQLStore.php
+++ b/includes/site/SiteSQLStore.php
@@ -41,7 +41,7 @@ class SiteSQLStore extends CachingSiteStore {
*/
public static function newInstance( ORMTable $sitesTable = null, BagOStuff $cache = null ) {
if ( $cache === null ) {
- $cache = wfGetMainCache();
+ $cache = wfGetCache( wfIsHHVM() ? CACHE_ACCEL : CACHE_ANYTHING );
}
$siteStore = new DBSiteStore();