From 50f8738984e6fcbe942eaaa4470b19f665e41c74 Mon Sep 17 00:00:00 2001 From: Reedy Date: Wed, 16 Oct 2019 00:06:22 +0100 Subject: [PATCH] Pass 'adviseStat' => true to ->getFileList() in DeleteOldFancyCaptchas.php As ->getFileTimestamp() presumably counts as 'stat'-ing the files Change-Id: Ia187dbc369ff56f154cae2ee46e3e9cd20def933 --- maintenance/DeleteOldFancyCaptchas.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maintenance/DeleteOldFancyCaptchas.php b/maintenance/DeleteOldFancyCaptchas.php index c6511ae28..742e9241b 100644 --- a/maintenance/DeleteOldFancyCaptchas.php +++ b/maintenance/DeleteOldFancyCaptchas.php @@ -61,7 +61,7 @@ class DeleteOldFancyCaptchas extends Maintenance { $filesToDelete = []; $deleteDate = $this->getOption( 'date' ); foreach ( - $backend->getFileList( [ 'dir' => $dir ] ) as $file + $backend->getFileList( [ 'dir' => $dir, 'adviseStat' => true ] ) as $file ) { $fullPath = $dir . '/' . $file; $timestamp = $backend->getFileTimestamp( [ 'src' => $fullPath ] );