Index: trunk/phase3/includes/parser/ParserCache.php |
— | — | @@ -4,6 +4,8 @@ |
5 | 5 | * @todo document |
6 | 6 | */ |
7 | 7 | class ParserCache { |
| 8 | + private $mMemc; |
| 9 | + |
8 | 10 | /** |
9 | 11 | * Get an instance of this object |
10 | 12 | */ |
— | — | @@ -23,6 +25,10 @@ |
24 | 26 | * @param $memCached Object |
25 | 27 | */ |
26 | 28 | function __construct( $memCached ) { |
| 29 | + if ( !$memCached ) { |
| 30 | + global $parserMemc; |
| 31 | + $parserMemc = $memCached = wfGetParserCacheStorage(); |
| 32 | + } |
27 | 33 | $this->mMemc = $memCached; |
28 | 34 | } |
29 | 35 | |