From: Niklas Laxström Date: Tue, 17 Jun 2008 08:14:33 +0000 (+0000) Subject: * Actually use $wgMessageCacheType for the MessageCache X-Git-Tag: 1.31.0-rc.0~46977 X-Git-Url: https://git.cyclocoop.org/admin/?a=commitdiff_plain;h=c175d9f88699b1533161d987b7a2a2870505c01f;p=lhc%2Fweb%2Fwiklou.git * Actually use $wgMessageCacheType for the MessageCache --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 0346f82e42..00a1afc0ad 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -60,6 +60,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN Default: false * Removed $wgEnableCascadingProtection option. Disabling cascading protection is no longer possible. +* $wgMessageCacheType defines now the type of cache used by the MessageCache class, + previously it was choosen based on $wgParserCacheType === New features in 1.13 === diff --git a/includes/Setup.php b/includes/Setup.php index c5d3f1b345..80e728d977 100644 --- a/includes/Setup.php +++ b/includes/Setup.php @@ -195,8 +195,8 @@ $messageMemc =& wfGetMessageCacheStorage(); $parserMemc =& wfGetParserCacheStorage(); wfDebug( 'Main cache: ' . get_class( $wgMemc ) . - "\nMessage cache: " . get_class( $messageMemc ) . - "\nParser cache: " . get_class( $parserMemc ) . "\n" ); + "\nMessage cache: " . get_class( $messageMemc ) . + "\nParser cache: " . get_class( $parserMemc ) . "\n" ); wfProfileOut( $fname.'-memcached' ); wfProfileIn( $fname.'-SetupSession' ); @@ -241,7 +241,7 @@ $wgOut = new StubObject( 'wgOut', 'OutputPage' ); $wgParser = new StubObject( 'wgParser', $wgParserConf['class'], array( $wgParserConf ) ); $wgMessageCache = new StubObject( 'wgMessageCache', 'MessageCache', - array( $parserMemc, $wgUseDatabaseMessages, $wgMsgCacheExpiry, wfWikiID() ) ); + array( $messageMemc, $wgUseDatabaseMessages, $wgMsgCacheExpiry, wfWikiID() ) ); wfProfileOut( $fname.'-globals' ); wfProfileIn( $fname.'-User' );