From: Brian Wolff Date: Sun, 4 Aug 2013 03:36:38 +0000 (-0300) Subject: Make action=purge on file redirects purge the file redirect cache. X-Git-Tag: 1.31.0-rc.0~19044 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=b6d8e4c1adf7ef639d725bcae722ab0b1e132836;p=lhc%2Fweb%2Fwiklou.git 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 --- 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(); } }