Index: branches/REL1_18/phase3/includes/filerepo/LocalFile.php |
— | — | @@ -678,7 +678,7 @@ |
679 | 679 | * Delete cached transformed files |
680 | 680 | */ |
681 | 681 | function purgeThumbnails() { |
682 | | - global $wgUseSquid, $wgExcludeFromThumbnailPurge; |
| 682 | + global $wgUseSquid; |
683 | 683 | |
684 | 684 | // Delete thumbnails |
685 | 685 | $files = $this->getThumbnails(); |
— | — | @@ -686,12 +686,6 @@ |
687 | 687 | $urls = array(); |
688 | 688 | |
689 | 689 | foreach ( $files as $file ) { |
690 | | - // Only remove files not in the $wgExcludeFromThumbnailPurge configuration variable |
691 | | - $ext = pathinfo( "$dir/$file", PATHINFO_EXTENSION ); |
692 | | - if ( in_array( $ext, $wgExcludeFromThumbnailPurge ) ) { |
693 | | - continue; |
694 | | - } |
695 | | - |
696 | 690 | # Check that the base file name is part of the thumb name |
697 | 691 | # This is a basic sanity check to avoid erasing unrelated directories |
698 | 692 | if ( strpos( $file, $this->getName() ) !== false ) { |
Index: branches/REL1_18/phase3/includes/DefaultSettings.php |
— | — | @@ -4718,13 +4718,6 @@ |
4719 | 4719 | ); |
4720 | 4720 | |
4721 | 4721 | /** |
4722 | | - * Extensions of "thumbnails" that are very expensive to regenerate and should be |
4723 | | - * excluded from normal action=purge thumbnail removal. |
4724 | | - */ |
4725 | | -$wgExcludeFromThumbnailPurge = array(); |
4726 | | - |
4727 | | -/** |
4728 | | - |
4729 | 4722 | * Jobs that must be explicitly requested, i.e. aren't run by job runners unless special flags are set. |
4730 | 4723 | * |
4731 | 4724 | * These can be: |