Tweaked cache size in getCachedRevisionObject()
authorAaron Schulz <aschulz@wikimedia.org>
Wed, 27 Aug 2014 18:32:40 +0000 (11:32 -0700)
committerBryanDavis <bdavis@wikimedia.org>
Wed, 3 Sep 2014 23:23:43 +0000 (23:23 +0000)
Change-Id: I3b01011f21bf3218f3b5c74430b5d5f9ceaec83e

includes/parser/CoreParserFunctions.php

index 983fc14..eacbecd 100644 (file)
@@ -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 ) ) {