From: Aaron Schulz Date: Fri, 8 Nov 2013 00:28:09 +0000 (-0800) Subject: Speed up thumbnail purging a bit for stash script X-Git-Tag: 1.31.0-rc.0~18229 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/journal.php?a=commitdiff_plain;h=c674d4c90c40d18187d893ed7a7ea94f43a1a624;p=lhc%2Fweb%2Fwiklou.git Speed up thumbnail purging a bit for stash script Change-Id: Ie0f3d5aa505a5c1554d7932d38ba376811590df1 --- 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 ) {