jenkins-bot has submitted this change and it was merged.
Change subject: Tweaked cache size in getCachedRevisionObject()
......................................................................
Tweaked cache size in getCachedRevisionObject()
Change-Id: I3b01011f21bf3218f3b5c74430b5d5f9ceaec83e
---
M includes/parser/CoreParserFunctions.php
1 file changed, 2 insertions(+), 2 deletions(-)
Approvals:
BryanDavis: Looks good to me, approved
jenkins-bot: Verified
diff --git a/includes/parser/CoreParserFunctions.php
b/includes/parser/CoreParserFunctions.php
index 983fc14..eacbecd 100644
--- a/includes/parser/CoreParserFunctions.php
+++ b/includes/parser/CoreParserFunctions.php
@@ -1001,8 +1001,8 @@
*/
private static function getCachedRevisionObject( $parser, $title = null
) {
static $cache = null;
- if ( !isset( $cache ) ) {
- $cache = new MapCacheLRU( 100 );
+ if ( $cache == null ) {
+ $cache = new MapCacheLRU( 50 );
}
if ( is_null( $title ) ) {
--
To view, visit https://gerrit.wikimedia.org/r/156591
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I3b01011f21bf3218f3b5c74430b5d5f9ceaec83e
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Aaron Schulz <[email protected]>
Gerrit-Reviewer: BryanDavis <[email protected]>
Gerrit-Reviewer: Cscott <[email protected]>
Gerrit-Reviewer: Jackmcbarn <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits