Merge "NameTableStore: ensure consistency upon rollback." into REL1_34
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Thu, 10 Oct 2019 22:21:24 +0000 (22:21 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Thu, 10 Oct 2019 22:21:24 +0000 (22:21 +0000)
RELEASE-NOTES-1.34
includes/objectcache/ObjectCache.php

index 89db7de..4ab44c9 100644 (file)
@@ -569,6 +569,10 @@ because of Phabricator reports.
 * IDatabase::bufferResults() has been deprecated. Use query batching instead.
 * MessageCache::singleton() is deprecated. Use
   MediaWikiServices::getMessageCache().
+* ObjectCache::getWANInstance() is deprecated. Use
+  MediaWikiServices::getMainWANObjectCache() instead.
+* ObjectCache::newWANCacheFromParams() is deprecated. Use
+  MediaWikiServices::getMainWANObjectCache() instead.
 * Constructing MovePage directly is deprecated. Use MovePageFactory.
 * TempFSFile::factory() has been deprecated. Use TempFSFileFactory instead.
 * wfIsBadImage() is deprecated. Use the BadFileLookup service instead.
index e49feae..73f3993 100644 (file)
@@ -91,8 +91,10 @@ class ObjectCache {
         * @since 1.26
         * @param string $id A key in $wgWANObjectCaches.
         * @return WANObjectCache
+        * @deprecated since 1.34 Use MediaWikiServices::getMainWANObjectCache instead
         */
        public static function getWANInstance( $id ) {
+               wfDeprecated( __METHOD__, '1.34' );
                if ( !isset( self::$wanInstances[$id] ) ) {
                        self::$wanInstances[$id] = self::newWANCacheFromId( $id );
                }
@@ -308,8 +310,11 @@ class ObjectCache {
         * @return WANObjectCache
         * @throws UnexpectedValueException
         * @suppress PhanTypeMismatchReturn
+        * @deprecated since 1.34 Use MediaWikiServices::getMainWANObjectCache
+        *  instead or use WANObjectCache::__construct directly
         */
        public static function newWANCacheFromParams( array $params ) {
+               wfDeprecated( __METHOD__, '1.34' );
                global $wgCommandLineMode, $wgSecretKey;
 
                $services = MediaWikiServices::getInstance();