From: Aaron Schulz Date: Tue, 25 Oct 2011 17:19:28 +0000 (+0000) Subject: Added temporary LocalFilePurgeThumbnails hook for bug 27641 X-Git-Tag: 1.31.0-rc.0~26919 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/pie.php?a=commitdiff_plain;h=d7af337eee9691dffd81aa0115b17fedfe4884a3;p=lhc%2Fweb%2Fwiklou.git Added temporary LocalFilePurgeThumbnails hook for bug 27641 --- diff --git a/includes/filerepo/LocalFile.php b/includes/filerepo/LocalFile.php index 07b4b042bc..460ed2751a 100644 --- a/includes/filerepo/LocalFile.php +++ b/includes/filerepo/LocalFile.php @@ -705,6 +705,9 @@ class LocalFile extends File { } wfRestoreWarnings(); + # Temporary hook for purging Swift thumbnail cache + wfRunHooks( 'LocalFilePurgeThumbnails', array( $dir, 'old' ) ); + // Purge the squid if ( $wgUseSquid ) { $urls = array(); @@ -734,6 +737,9 @@ class LocalFile extends File { $dir = array_shift( $files ); $this->purgeThumbList( $dir, $files ); + # Temporary hook for purging Swift thumbnail cache + wfRunHooks( 'LocalFilePurgeThumbnails', array( $dir, 'current' ) ); + // Purge the squid if ( $wgUseSquid ) { $urls = array();