From 2d20b88c7d79d0c7f7fc682f22a1b857634c2600 Mon Sep 17 00:00:00 2001 From: Marius Hoch Date: Sun, 19 Jul 2015 12:29:58 -0500 Subject: [PATCH] Use CACHE_ACCEL for SiteLists if on HHVM Bug: T58602 Change-Id: I3eeedddeb79cfbee734cfe49fe86d32bf826040a --- includes/site/SiteSQLStore.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/site/SiteSQLStore.php b/includes/site/SiteSQLStore.php index d77f07be5c..e3230fff84 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(); -- 2.20.1