From 34a89aa10f0163f3934354fbbfaac322e7de22ce Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Thu, 3 Oct 2013 09:12:25 -0700 Subject: [PATCH] Avoid extra HEADs for stash clearing Change-Id: I96e78b219fe12b43daf4a313eb297b98577ef955 --- maintenance/cleanupUploadStash.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maintenance/cleanupUploadStash.php b/maintenance/cleanupUploadStash.php index 9dd62a31bc..c2ba555867 100644 --- a/maintenance/cleanupUploadStash.php +++ b/maintenance/cleanupUploadStash.php @@ -113,7 +113,7 @@ class UploadStashCleanup extends Maintenance { // Apparently lots of stash files are not registered in the DB... $dir = $tempRepo->getZonePath( 'public' ); - $iterator = $tempRepo->getBackend()->getFileList( array( 'dir' => $dir ) ); + $iterator = $tempRepo->getBackend()->getFileList( array( 'dir' => $dir, 'adviseStat' => 1 ) ); $this->output( "Deleting orphaned temp files...\n" ); if ( strpos( $dir, '/local-temp' ) === false ) { // sanity check $this->error( "Temp repo is not using the temp container.", 1 ); // die -- 2.20.1