From: Tim Starling Date: Mon, 25 Apr 2005 13:43:11 +0000 (+0000) Subject: Cleared $wgLinkHolders after they are used. This fixes bug 1770 and probably improves... X-Git-Tag: 1.5.0alpha1~134 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/membres/fiche.php?a=commitdiff_plain;h=8172957670481c3de4bd180217fe2f7bd492bb09;p=lhc%2Fweb%2Fwiklou.git Cleared $wgLinkHolders after they are used. This fixes bug 1770 and probably improves performance too. --- diff --git a/includes/Parser.php b/includes/Parser.php index daf10df0d0..18fa22816b 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -2920,6 +2920,17 @@ class Parser wfProfileOut( $fname.'-interwiki' ); } + # Clear link holders, no need to fetch these ones again in a subsequent invocation + $wgLinkHolders = array( + 'namespaces' => array(), + 'dbkeys' => array(), + 'queries' => array(), + 'texts' => array(), + 'titles' => array() + ); + $wgInterwikiLinkHolders = array(); + + wfProfileOut( $fname ); return $colours; }