Aaron Schulz has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/156591

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(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/91/156591/1

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: newchange
Gerrit-Change-Id: I3b01011f21bf3218f3b5c74430b5d5f9ceaec83e
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Aaron Schulz <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to