Merge "Maintenance: detect missing parent::__construct()"
[lhc/web/wiklou.git] / includes / WikiFilePage.php
index 5e603d3..fe1ff88 100644 (file)
@@ -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();
        }
 }