Aaron Schulz has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/94305


Change subject: Speed up thumbnail purging a bit for stash script
......................................................................

Speed up thumbnail purging a bit for stash script

Change-Id: Ie0f3d5aa505a5c1554d7932d38ba376811590df1
---
M maintenance/cleanupUploadStash.php
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/05/94305/1

diff --git a/maintenance/cleanupUploadStash.php 
b/maintenance/cleanupUploadStash.php
index bc43c67..2300694 100644
--- a/maintenance/cleanupUploadStash.php
+++ b/maintenance/cleanupUploadStash.php
@@ -94,7 +94,7 @@
 
                // Delete all the corresponding thumbnails...
                $dir = $tempRepo->getZonePath( 'thumb' );
-               $iterator = $tempRepo->getBackend()->getFileList( array( 'dir' 
=> $dir ) );
+               $iterator = $tempRepo->getBackend()->getFileList( array( 'dir' 
=> $dir, 'adviseStat' => 1 ) );
                $this->output( "Deleting old thumbnails...\n" );
                $i = 0;
                foreach ( $iterator as $file ) {

-- 
To view, visit https://gerrit.wikimedia.org/r/94305
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie0f3d5aa505a5c1554d7932d38ba376811590df1
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Aaron Schulz <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to