Pass 'adviseStat' => true to ->getFileList() in DeleteOldFancyCaptchas.php

As ->getFileTimestamp() presumably counts as 'stat'-ing the files

Change-Id: Ia187dbc369ff56f154cae2ee46e3e9cd20def933
This commit is contained in:
Reedy 2019-10-16 00:06:22 +01:00
parent 86246f0172
commit 50f8738984

View file

@ -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 ] );