Aaron Schulz has submitted this change and it was merged.
Change subject: Speed up thumbnail purging a bit for stash script
......................................................................
Speed up thumbnail purging a bit for stash script
Change-Id: Ie0f3d5aa505a5c1554d7932d38ba376811590df1
(cherry picked from commit c674d4c90c40d18187d893ed7a7ea94f43a1a624)
---
M maintenance/cleanupUploadStash.php
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
Aaron Schulz: Verified; Looks good to me, approved
diff --git a/maintenance/cleanupUploadStash.php
b/maintenance/cleanupUploadStash.php
index 00aea56..d8fdae9 100644
--- a/maintenance/cleanupUploadStash.php
+++ b/maintenance/cleanupUploadStash.php
@@ -95,7 +95,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;
$batch = array(); // operation batch
--
To view, visit https://gerrit.wikimedia.org/r/94463
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ie0f3d5aa505a5c1554d7932d38ba376811590df1
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: wmf/1.23wmf2
Gerrit-Owner: Aaron Schulz <[email protected]>
Gerrit-Reviewer: Aaron Schulz <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits