From c674d4c90c40d18187d893ed7a7ea94f43a1a624 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Thu, 7 Nov 2013 16:28:09 -0800 Subject: [PATCH] Speed up thumbnail purging a bit for stash script Change-Id: Ie0f3d5aa505a5c1554d7932d38ba376811590df1 --- maintenance/cleanupUploadStash.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maintenance/cleanupUploadStash.php b/maintenance/cleanupUploadStash.php index bc43c6760b..2300694f4f 100644 --- a/maintenance/cleanupUploadStash.php +++ b/maintenance/cleanupUploadStash.php @@ -94,7 +94,7 @@ class UploadStashCleanup extends Maintenance { // 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 ) { -- 2.20.1