From d7af337eee9691dffd81aa0115b17fedfe4884a3 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Tue, 25 Oct 2011 17:19:28 +0000 Subject: [PATCH] Added temporary LocalFilePurgeThumbnails hook for bug 27641 --- includes/filerepo/LocalFile.php | 6 ++++++ 1 file changed, 6 insertions(+) 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(); -- 2.20.1