dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4679875
)
Make PurgeChangedFiles actually purge old versions too
author
Aaron Schulz
<aschulz@wikimedia.org>
Wed, 10 Aug 2016 23:29:10 +0000
(16:29 -0700)
committer
Aaron Schulz
<aschulz@wikimedia.org>
Wed, 10 Aug 2016 23:29:10 +0000
(16:29 -0700)
Change-Id: I7aa746535ceae7d19c492145c3254d55511a8576
maintenance/purgeChangedFiles.php
patch
|
blob
|
history
diff --git
a/maintenance/purgeChangedFiles.php
b/maintenance/purgeChangedFiles.php
index
5b035e1
..
70a26cb
100644
(file)
--- a/
maintenance/purgeChangedFiles.php
+++ b/
maintenance/purgeChangedFiles.php
@@
-164,8
+164,12
@@
class PurgeChangedFiles extends Maintenance {
continue;
}
continue;
}
- // Purge current version and
any versions in oldimage table
+ // Purge current version and
its thumbnails
$file->purgeCache();
$file->purgeCache();
+ // Purge the old versions and their thumbnails
+ foreach ( $file->getHistory() as $oldFile ) {
+ $oldFile->purgeCache();
+ }
if ( $logType === 'delete' ) {
// If there is an orphaned storage file... delete it
if ( $logType === 'delete' ) {
// If there is an orphaned storage file... delete it