http://www.mediawiki.org/wiki/Special:Code/MediaWiki/70202
Revision: 70202
Author: mah
Date: 2010-07-30 19:51:39 +0000 (Fri, 30 Jul 2010)
Log Message:
-----------
Make sure we get a good memCached object.
Modified Paths:
--------------
trunk/phase3/includes/parser/ParserCache.php
Modified: trunk/phase3/includes/parser/ParserCache.php
===================================================================
--- trunk/phase3/includes/parser/ParserCache.php 2010-07-30 19:14:22 UTC
(rev 70201)
+++ trunk/phase3/includes/parser/ParserCache.php 2010-07-30 19:51:39 UTC
(rev 70202)
@@ -4,6 +4,8 @@
* @todo document
*/
class ParserCache {
+ private $mMemc;
+
/**
* Get an instance of this object
*/
@@ -23,6 +25,10 @@
* @param $memCached Object
*/
function __construct( $memCached ) {
+ if ( !$memCached ) {
+ global $parserMemc;
+ $parserMemc = $memCached = wfGetParserCacheStorage();
+ }
$this->mMemc = $memCached;
}
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs