From d2dbfd805206ef9b990ffd4f168556d91e84379a Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Tue, 15 Dec 2009 03:22:19 +0000 Subject: [PATCH] Merged r56745 from wmf-deployment, with an adjusted comment. Fixes image redirect cache invalidation on move page in a replicated setup. --- includes/specials/SpecialMovepage.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/includes/specials/SpecialMovepage.php b/includes/specials/SpecialMovepage.php index 1bf1d48923..fbefb3b7d5 100644 --- a/includes/specials/SpecialMovepage.php +++ b/includes/specials/SpecialMovepage.php @@ -544,6 +544,13 @@ class MovePageForm { $wgUser->removeWatch( $ot ); $wgUser->removeWatch( $nt ); } + + # Re-clear the file redirect cache, which may have been polluted by + # parsing in messages above. See CR r56745. + # FIXME: needs a more robust solution inside FileRepo. + if( $ot->getNamespace() == NS_FILE ) { + RepoGroup::singleton()->getLocalRepo()->invalidateImageRedirect( $ot ); + } } function showLogFragment( $title, &$out ) { -- 2.20.1