Index: branches/REL1_5/phase3/maintenance/importDump.php |
— | — | @@ -45,6 +45,7 @@ |
46 | 46 | function handleRevision( $rev ) { |
47 | 47 | $title = $rev->getTitle(); |
48 | 48 | if (!$title) { |
| 49 | + $this->progress( "Got bogus revision with null title!" ); |
49 | 50 | return; |
50 | 51 | } |
51 | 52 | $display = $title->getPrefixedText(); |
Index: branches/REL1_5/phase3/includes/SpecialImport.php |
— | — | @@ -197,6 +197,10 @@ |
198 | 198 | $userText = $this->getUser(); |
199 | 199 | } |
200 | 200 | |
| 201 | + // avoid memory leak...? |
| 202 | + global $wgLinkCache; |
| 203 | + $wgLinkCache->clear(); |
| 204 | + |
201 | 205 | $article = new Article( $this->title ); |
202 | 206 | $pageId = $article->getId(); |
203 | 207 | if( $pageId == 0 ) { |
Index: branches/REL1_5/phase3/RELEASE-NOTES |
— | — | @@ -772,6 +772,7 @@ |
773 | 773 | * (bug 3350) Missing label for move talk page checkbox. |
774 | 774 | * (bug 2570) Add 'watch this page' checkbox on uploads, watch uploads |
775 | 775 | by default when 'watchdefault' option is on |
| 776 | +* (bug 3182) Clear link cache during import to prevent memory leak |
776 | 777 | |
777 | 778 | |
778 | 779 | === Caveats === |