Index: trunk/phase3/includes/filerepo/LocalFile.php |
— | — | @@ -705,6 +705,9 @@ |
706 | 706 | } |
707 | 707 | wfRestoreWarnings(); |
708 | 708 | |
| 709 | + # Temporary hook for purging Swift thumbnail cache |
| 710 | + wfRunHooks( 'LocalFilePurgeThumbnails', array( $dir, 'old' ) ); |
| 711 | + |
709 | 712 | // Purge the squid |
710 | 713 | if ( $wgUseSquid ) { |
711 | 714 | $urls = array(); |
— | — | @@ -734,6 +737,9 @@ |
735 | 738 | $dir = array_shift( $files ); |
736 | 739 | $this->purgeThumbList( $dir, $files ); |
737 | 740 | |
| 741 | + # Temporary hook for purging Swift thumbnail cache |
| 742 | + wfRunHooks( 'LocalFilePurgeThumbnails', array( $dir, 'current' ) ); |
| 743 | + |
738 | 744 | // Purge the squid |
739 | 745 | if ( $wgUseSquid ) { |
740 | 746 | $urls = array(); |