jenkins-bot has submitted this change and it was merged.

Change subject: Make action=purge on file redirects purge the file redirect 
cache.
......................................................................


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
---
M includes/WikiFilePage.php
1 file changed, 4 insertions(+), 0 deletions(-)

Approvals:
  Parent5446: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/includes/WikiFilePage.php b/includes/WikiFilePage.php
index 5e603d3..fe1ff88 100644
--- a/includes/WikiFilePage.php
+++ b/includes/WikiFilePage.php
@@ -183,6 +183,10 @@
                        // 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();
        }
 }

-- 
To view, visit https://gerrit.wikimedia.org/r/77563
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ib70eef800f686a96a261ee38de5df239847ace8a
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Brian Wolff <[email protected]>
Gerrit-Reviewer: Aaron Schulz <[email protected]>
Gerrit-Reviewer: Parent5446 <[email protected]>
Gerrit-Reviewer: jenkins-bot

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to