X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FWikiFilePage.php;h=fe1ff88a95ca9abdf6b6acb4f1b12e269fec4c3e;hb=8aaed96eb48f5b8b78ec8fe4287d7295a0039871;hp=fa2307228239b344a45e950a5af04e8d176b82ac;hpb=a36d5d29a183ae1c824888351dffba132f67d86d;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/WikiFilePage.php b/includes/WikiFilePage.php index fa23072282..fe1ff88a95 100644 --- a/includes/WikiFilePage.php +++ b/includes/WikiFilePage.php @@ -107,7 +107,7 @@ class WikiFilePage extends WikiPage { /** * @return bool */ - public function isRedirect( ) { + public function isRedirect() { $this->loadFile(); if ( $this->mFile->isLocal() ) { return parent::isRedirect(); @@ -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(); } }