From: Marius Hoch Date: Sun, 19 Jul 2015 17:29:58 +0000 (-0500) Subject: Use CACHE_ACCEL for SiteLists if on HHVM X-Git-Tag: 1.31.0-rc.0~10715 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/membres/fiche.php?a=commitdiff_plain;h=2d20b88c7d79d0c7f7fc682f22a1b857634c2600;p=lhc%2Fweb%2Fwiklou.git Use CACHE_ACCEL for SiteLists if on HHVM Bug: T58602 Change-Id: I3eeedddeb79cfbee734cfe49fe86d32bf826040a --- 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();