dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
959aaf4
)
Tweaked cache size in getCachedRevisionObject()
author
Aaron Schulz
<aschulz@wikimedia.org>
Wed, 27 Aug 2014 18:32:40 +0000
(11:32 -0700)
committer
BryanDavis
<bdavis@wikimedia.org>
Wed, 3 Sep 2014 23:23:43 +0000
(23:23 +0000)
Change-Id: I3b01011f21bf3218f3b5c74430b5d5f9ceaec83e
includes/parser/CoreParserFunctions.php
patch
|
blob
|
history
diff --git
a/includes/parser/CoreParserFunctions.php
b/includes/parser/CoreParserFunctions.php
index
983fc14
..
eacbecd
100644
(file)
--- 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(
10
0 );
+ if (
$cache == null
) {
+ $cache = new MapCacheLRU(
5
0 );
}
if ( is_null( $title ) ) {