Index: branches/wmf/1.18wmf1/includes/filerepo/LocalFile.php |
— | — | @@ -696,6 +696,9 @@ |
697 | 697 | $dir = array_shift( $files ); |
698 | 698 | $this->purgeThumbList( $dir, $files ); |
699 | 699 | |
| 700 | + // Purge any custom thumbnail caches |
| 701 | + wfRunHooks( 'LocalFilePurgeThumbnails', array( $this, $archiveName ) ); |
| 702 | + |
700 | 703 | // Directory should be empty, delete it too. This will probably suck on |
701 | 704 | // something like NFS or if the directory isn't actually empty, so hide |
702 | 705 | // the warnings :D |
— | — | @@ -726,6 +729,9 @@ |
727 | 730 | $dir = array_shift( $files ); |
728 | 731 | $this->purgeThumbList( $dir, $files ); |
729 | 732 | |
| 733 | + // Purge any custom thumbnail caches |
| 734 | + wfRunHooks( 'LocalFilePurgeThumbnails', array( $this, false ) ); |
| 735 | + |
730 | 736 | // Purge the squid |
731 | 737 | if ( $wgUseSquid ) { |
732 | 738 | $urls = array(); |