From: Aaron Schulz Date: Thu, 3 Oct 2013 16:12:25 +0000 (-0700) Subject: Avoid extra HEADs for stash clearing X-Git-Tag: 1.31.0-rc.0~18615^2 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/modifier.php?a=commitdiff_plain;h=34a89aa10f0163f3934354fbbfaac322e7de22ce;p=lhc%2Fweb%2Fwiklou.git Avoid extra HEADs for stash clearing Change-Id: I96e78b219fe12b43daf4a313eb297b98577ef955 --- 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