From 8172957670481c3de4bd180217fe2f7bd492bb09 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Mon, 25 Apr 2005 13:43:11 +0000 Subject: [PATCH] Cleared $wgLinkHolders after they are used. This fixes bug 1770 and probably improves performance too. --- includes/Parser.php | 11 +++++++++++ 1 file changed, 11 insertions(+) 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; } -- 2.20.1