summaryrefslogtreecommitdiff
path: root/includes/site/SiteSQLStore.php
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2015-12-20 09:00:55 +0100
committerPierre Schmitz <pierre@archlinux.de>2015-12-20 09:00:55 +0100
commita2190ac74dd4d7080b12bab90e552d7aa81209ef (patch)
tree8b31f38de9882d18df54cf8d9e0de74167a094eb /includes/site/SiteSQLStore.php
parent15e69f7b20b6596b9148030acce5b59993b95a45 (diff)
parent257401d8b2cf661adf36c84b0e3fd1cf85e33c22 (diff)
Merge branch 'mw-1.26'
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();