From 1e78807f0d2b42fa4c9e788a1b7cca6d39f0e842 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Wed, 27 Aug 2014 11:32:40 -0700 Subject: [PATCH] Tweaked cache size in getCachedRevisionObject() Change-Id: I3b01011f21bf3218f3b5c74430b5d5f9ceaec83e --- includes/parser/CoreParserFunctions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/parser/CoreParserFunctions.php b/includes/parser/CoreParserFunctions.php index 983fc1489f..eacbecd409 100644 --- a/includes/parser/CoreParserFunctions.php +++ b/includes/parser/CoreParserFunctions.php @@ -1001,8 +1001,8 @@ class CoreParserFunctions { */ 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 ) ) { -- 2.20.1