From db4e7efd9286bbf306baef6d157c4179954772f2 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Sat, 9 Mar 2013 21:00:14 +0100 Subject: [PATCH] Remove the page from the LinkCache before adding it again in WikiPage::loadFromRow() This makes sure the LinkCache doesn't list a page both as good and bad link at the same time, e.g. when a page gets created or deleted in the request. Change-Id: I6774132ba8e4d28deed1908150c02fbaa42111a5 --- includes/WikiPage.php | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/WikiPage.php b/includes/WikiPage.php index 2da314f10f..da90811773 100644 --- a/includes/WikiPage.php +++ b/includes/WikiPage.php @@ -377,6 +377,7 @@ class WikiPage implements Page, IDBAccessObject { */ public function loadFromRow( $data, $from ) { $lc = LinkCache::singleton(); + $lc->clearLink( $this->mTitle ); if ( $data ) { $lc->addGoodLinkObjFromRow( $this->mTitle, $data ); -- 2.20.1