r57278 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r57277‎ | r57278 | r57279 >
Date:09:09, 2 October 2009
Author:daniel
Status:deferred
Tags:
Comment:
clear variable cache in clearState() as suggested by tim. fix odd values for long running imports; more vars could be cached now.
Modified paths:
  • /trunk/phase3/includes/parser/Parser.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/parser/Parser.php
@@ -201,6 +201,7 @@
202202 $this->mLinkHolders = new LinkHolderArray( $this );
203203 $this->mLinkID = 0;
204204 $this->mRevisionTimestamp = $this->mRevisionId = null;
 205+ $this->mVarCache = array();
205206
206207 /**
207208 * Prefix for temporary replacement strings for the multipass parser.

Follow-up revisions

RevisionCommit summaryAuthorDate
r57283follow-up to r57278: cache all variables untill the next clearState()daniel09:46, 2 October 2009

Status & tagging log