Use new WikiMap::getCurrentWikiDomain() for objectcache and profiler keyspace
authorAaron Schulz <aschulz@wikimedia.org>
Tue, 16 Oct 2018 03:00:06 +0000 (20:00 -0700)
committerKrinkle <krinklemail@gmail.com>
Tue, 30 Oct 2018 06:41:07 +0000 (06:41 +0000)
Change-Id: I0e77c58a55b7ce908ec1d6399ec6629d00a48953

includes/objectcache/ObjectCache.php
includes/profiler/Profiler.php

index 6d76d5e..cd3c642 100644 (file)
@@ -154,7 +154,7 @@ class ObjectCache {
                        return $keyspace;
                }
 
-               return wfWikiID();
+               return WikiMap::getCurrentWikiDomain()->getId();
        }
 
        /**
index bf4ddc7..5c38159 100644 (file)
@@ -115,7 +115,7 @@ abstract class Profiler {
         */
        public function getProfileID() {
                if ( $this->profileID === false ) {
-                       return wfWikiID();
+                       return WikiMap::getCurrentWikiDomain()->getId();
                } else {
                        return $this->profileID;
                }