* The ExtractThumbParameters hook (deprecated in 1.21) was removed.
* The OutputPage::addParserOutputNoText and ::getHeadLinks methods (both
deprecated in 1.24) were removed.
+* wfMemcKey() and wfGlobalCacheKey() were deprecated. ObjectCache::makeKey() and
+ ObjectCache::makeGlobalKey() should be used instead.
== Compatibility ==
MediaWiki 1.30 requires PHP 5.5.9 or later. There is experimental support for
}
/**
+ * @deprecated since 1.30 Call makeKey on a ObjectCache instance
+ *
* Make a cache key for the local wiki.
*
* @param string $args,...
}
/**
+ * @deprecated since 1.30 Call makeGlobalKey on a ObjectCache instance
+ *
* Make a cache key with database-agnostic prefix.
*
* Doesn't have a wiki-specific namespace. Uses a generic 'global' prefix
*/
use HtmlFormatter\HtmlFormatter;
+use MediaWiki\MediaWikiServices;
/**
* Class to output help for an API module
}
$out->setPageTitle( $context->msg( 'api-help-title' ) );
- $cache = ObjectCache::getMainWANInstance();
+ $cache = MediaWikiServices::getInstance()->getMainWANObjectCache();
$cacheKey = null;
if ( count( $modules ) == 1 && $modules[0] instanceof ApiMain &&
$options['recursivesubmodules'] && $context->getLanguage() === $wgContLang
$cacheHelpTimeout = $context->getConfig()->get( 'APICacheHelpTimeout' );
if ( $cacheHelpTimeout > 0 ) {
// Get help text from cache if present
- $cacheKey = wfMemcKey( 'apihelp', $modules[0]->getModulePath(),
+ $cacheKey = $cache->makeKey( 'apihelp', $modules[0]->getModulePath(),
(int)!empty( $options['toc'] ),
str_replace( ' ', '_', SpecialVersion::getVersion( 'nodb' ) ) );
$cached = $cache->get( $cacheKey );