http://www.mediawiki.org/wiki/Special:Code/MediaWiki/100716
Revision: 100716
Author: aaron
Date: 2011-10-25 17:19:28 +0000 (Tue, 25 Oct 2011)
Log Message:
-----------
Added temporary LocalFilePurgeThumbnails hook for bug 27641
Modified Paths:
--------------
trunk/phase3/includes/filerepo/LocalFile.php
Modified: trunk/phase3/includes/filerepo/LocalFile.php
===================================================================
--- trunk/phase3/includes/filerepo/LocalFile.php 2011-10-25 17:15:21 UTC
(rev 100715)
+++ trunk/phase3/includes/filerepo/LocalFile.php 2011-10-25 17:19:28 UTC
(rev 100716)
@@ -705,6 +705,9 @@
}
wfRestoreWarnings();
+ # Temporary hook for purging Swift thumbnail cache
+ wfRunHooks( 'LocalFilePurgeThumbnails', array( $dir, 'old' ) );
+
// Purge the squid
if ( $wgUseSquid ) {
$urls = array();
@@ -734,6 +737,9 @@
$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();
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs