r100716 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r100715‎ | r100716 | r100717 >
Date:17:19, 25 October 2011
Author:aaron
Status:resolved
Tags:
Comment:
Added temporary LocalFilePurgeThumbnails hook for bug 27641
Modified paths:
  • /trunk/phase3/includes/filerepo/LocalFile.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/filerepo/LocalFile.php
@@ -705,6 +705,9 @@
706706 }
707707 wfRestoreWarnings();
708708
 709+ # Temporary hook for purging Swift thumbnail cache
 710+ wfRunHooks( 'LocalFilePurgeThumbnails', array( $dir, 'old' ) );
 711+
709712 // Purge the squid
710713 if ( $wgUseSquid ) {
711714 $urls = array();
@@ -734,6 +737,9 @@
735738 $dir = array_shift( $files );
736739 $this->purgeThumbList( $dir, $files );
737740
 741+ # Temporary hook for purging Swift thumbnail cache
 742+ wfRunHooks( 'LocalFilePurgeThumbnails', array( $dir, 'current' ) );
 743+
738744 // Purge the squid
739745 if ( $wgUseSquid ) {
740746 $urls = array();

Follow-up revisions

RevisionCommit summaryAuthorDate
r101224FU r100716:...aaron22:21, 28 October 2011

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r84395(bug 27641) purgeThumbnails should support exclusion of expensive files. Add ...catrope16:38, 20 March 2011

Status & tagging log