From b6d8e4c1adf7ef639d725bcae722ab0b1e132836 Mon Sep 17 00:00:00 2001 From: Brian Wolff Date: Sun, 4 Aug 2013 00:36:38 -0300 Subject: [PATCH] Make action=purge on file redirects purge the file redirect cache. Seems like something that should get purged. Inspired specificly by bug 52200 (Not intended to be a solution to that bug, that bug just illustrated that this cache is not purged on action=purge). Change-Id: Ib70eef800f686a96a261ee38de5df239847ace8a --- includes/WikiFilePage.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/includes/WikiFilePage.php b/includes/WikiFilePage.php index 5e603d37af..fe1ff88a95 100644 --- a/includes/WikiFilePage.php +++ b/includes/WikiFilePage.php @@ -183,6 +183,10 @@ class WikiFilePage extends WikiPage { // to be updated (in case the cached information is wrong) $this->mFile->purgeCache( array( 'forThumbRefresh' => true ) ); } + if ( $this->mRepo ) { + // Purge redirect cache + $this->mRepo->invalidateImageRedirect( $this->mTitle ); + } return parent::doPurge(); } } -- 2.20.1