Merge "mw.widgets.CategorySelector: Link to category page and display existence status"
[lhc/web/wiklou.git] / includes / site / SiteSQLStore.php
index d77f07b..e3230ff 100644 (file)
@@ -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();