ChangeTags: Deprecate ChangeTags::purgeTagUsageCache()
The cache key that it purges is no longer used anywhere. Change-Id: I2c255936451cde09579594cc4524c8fe38cf3e7c
This commit is contained in:
parent
ecaf9dabbc
commit
e0213bda23
2 changed files with 4 additions and 7 deletions
|
|
@ -293,6 +293,8 @@ because of Phabricator reports.
|
|||
* The mw.language.specialCharacters property from the
|
||||
'mediawiki.language.specialCharacters' module has been deprecated.
|
||||
Use require( 'mediawiki.language.specialCharacters' ) instead.
|
||||
* ChangeTags::purgeTagUsageCache() has been deprecated, and is expected to be
|
||||
removed in a future release.
|
||||
|
||||
=== Other changes in 1.33 ===
|
||||
* (T201747) Html::openElement() warns if given an element name with a space
|
||||
|
|
|
|||
|
|
@ -420,8 +420,6 @@ class ChangeTags {
|
|||
}
|
||||
}
|
||||
|
||||
self::purgeTagUsageCache();
|
||||
|
||||
Hooks::run( 'ChangeTagsAfterUpdateTags', [ $tagsToAdd, $tagsToRemove, $prevTags,
|
||||
$rc_id, $rev_id, $log_id, $params, $rc, $user ] );
|
||||
|
||||
|
|
@ -1456,18 +1454,15 @@ class ChangeTags {
|
|||
$cache->touchCheckKey( $cache->makeKey( 'valid-tags-hook' ) );
|
||||
|
||||
MediaWikiServices::getInstance()->getChangeTagDefStore()->reloadMap();
|
||||
|
||||
self::purgeTagUsageCache();
|
||||
}
|
||||
|
||||
/**
|
||||
* Invalidates the tag statistics cache only.
|
||||
* @since 1.25
|
||||
* @deprecated since 1.33 the cache this purges no longer exists
|
||||
*/
|
||||
public static function purgeTagUsageCache() {
|
||||
$cache = MediaWikiServices::getInstance()->getMainWANObjectCache();
|
||||
|
||||
$cache->touchCheckKey( $cache->makeKey( 'change-tag-statistics' ) );
|
||||
wfDeprecated( __METHOD__, '1.33' );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue