From: Aaron Schulz Date: Wed, 27 Aug 2014 18:32:40 +0000 (-0700) Subject: Tweaked cache size in getCachedRevisionObject() X-Git-Tag: 1.31.0-rc.0~14171 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=1e78807f0d2b42fa4c9e788a1b7cca6d39f0e842;p=lhc%2Fweb%2Fwiklou.git Tweaked cache size in getCachedRevisionObject() Change-Id: I3b01011f21bf3218f3b5c74430b5d5f9ceaec83e --- 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 ) ) {