* should fall back to the next notice in its sequence
*/
private function getCachedNotice( $name ) {
- global $wgRenderHashAppend, $parserMemc, $wgContLang;
+ global $wgRenderHashAppend, $wgContLang;
$needParse = false;
$notice = $msg->plain();
}
+ $cache = wfGetCache( CACHE_ANYTHING );
// Use the extra hash appender to let eg SSL variants separately cache.
- $key = $parserMemc->makeKey( $name . $wgRenderHashAppend );
- $cachedNotice = $parserMemc->get( $key );
+ $key = $cache->makeKey( $name . $wgRenderHashAppend );
+ $cachedNotice = $cache->get( $key );
if ( is_array( $cachedNotice ) ) {
if ( md5( $notice ) == $cachedNotice['hash'] ) {
$notice = $cachedNotice['html'];
if ( $needParse ) {
$parsed = $this->getOutput()->parse( $notice );
- $parserMemc->set( $key, [ 'html' => $parsed, 'hash' => md5( $notice ) ], 600 );
+ $cache->set( $key, [ 'html' => $parsed, 'hash' => md5( $notice ) ], 600 );
$notice = $parsed;
}