r60061 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r60060‎ | r60061 | r60062 >
Date:03:22, 15 December 2009
Author:tstarling
Status:deferred
Tags:
Comment:
Merged r56745 from wmf-deployment, with an adjusted comment. Fixes image redirect cache invalidation on move page in a replicated setup.
Modified paths:
  • /trunk/phase3/includes/specials/SpecialMovepage.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/specials/SpecialMovepage.php
@@ -544,6 +544,13 @@
545545 $wgUser->removeWatch( $ot );
546546 $wgUser->removeWatch( $nt );
547547 }
 548+
 549+ # Re-clear the file redirect cache, which may have been polluted by
 550+ # parsing in messages above. See CR r56745.
 551+ # FIXME: needs a more robust solution inside FileRepo.
 552+ if( $ot->getNamespace() == NS_FILE ) {
 553+ RepoGroup::singleton()->getLocalRepo()->invalidateImageRedirect( $ot );
 554+ }
548555 }
549556
550557 function showLogFragment( $title, &$out ) {

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r56745Quick hack to fix file redirect caching bug on file rename...brion00:45, 22 September 2009

Status & tagging log