Hoo man has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/225719

Change subject: Use CACHE_ACCEL for SiteLists if on HHVM
......................................................................

Use CACHE_ACCEL for SiteLists if on HHVM

Probably needs someone from ops sign this of.

Bug: T58602
Change-Id: I3eeedddeb79cfbee734cfe49fe86d32bf826040a
---
M includes/site/SiteSQLStore.php
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/19/225719/1

diff --git a/includes/site/SiteSQLStore.php b/includes/site/SiteSQLStore.php
index d77f07b..e3230ff 100644
--- a/includes/site/SiteSQLStore.php
+++ b/includes/site/SiteSQLStore.php
@@ -41,7 +41,7 @@
         */
        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();

-- 
To view, visit https://gerrit.wikimedia.org/r/225719
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I3eeedddeb79cfbee734cfe49fe86d32bf826040a
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Hoo man <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to