Deprecate $wgMemc

Callers should use the LocalServerObjectCache service instead.

Bug: T160813
Change-Id: I0f9725a56413b85929f920542bf89928e719baac
This commit is contained in:
mainframe98 2020-01-20 11:21:03 +01:00
parent c1b445c44c
commit 82b56e50e8
2 changed files with 6 additions and 0 deletions

View file

@ -288,6 +288,8 @@ because of Phabricator reports.
* As part of dropping security support for IE 6 and IE 7, * As part of dropping security support for IE 6 and IE 7,
WebRequest::checkUrlExtension() has been deprecated, and now always returns WebRequest::checkUrlExtension() has been deprecated, and now always returns
true. true.
* $wgMemc is deprecated, use
MediaWikiServices::getInstance()->getLocalServerObjectCache() instead.
* … * …
=== Other changes in 1.35 === === Other changes in 1.35 ===

View file

@ -749,6 +749,10 @@ if ( $wgCommandLineMode ) {
wfDebug( $debug ); wfDebug( $debug );
} }
/**
* @var BagOStuff $wgMemc
* @deprecated since 1.35, use the LocalServerObjectCache service instead
*/
$wgMemc = ObjectCache::getLocalClusterInstance(); $wgMemc = ObjectCache::getLocalClusterInstance();
$messageMemc = wfGetMessageCacheStorage(); $messageMemc = wfGetMessageCacheStorage();