From: Aaron Schulz Date: Mon, 13 May 2013 17:37:03 +0000 (-0700) Subject: Clear stat cache before determining local copy error message. X-Git-Tag: 1.31.0-rc.0~19686^2 X-Git-Url: http://git.cyclocoop.org/fichier?a=commitdiff_plain;h=95f0a167e04523c42d855e7751e787643f91056a;p=lhc%2Fweb%2Fwiklou.git Clear stat cache before determining local copy error message. * This makes it clearer if the listings are just wonky. Change-Id: I78078fb9fac88b17e010b0eb990dbbeb83ea48f1 --- diff --git a/maintenance/copyFileBackend.php b/maintenance/copyFileBackend.php index fddc72c4e5..1c592a9c10 100644 --- a/maintenance/copyFileBackend.php +++ b/maintenance/copyFileBackend.php @@ -190,9 +190,9 @@ class CopyFileBackend extends Maintenance { ? $fsFiles[$srcPath] : $src->getLocalReference( array( 'src' => $srcPath, 'latest' => 1 ) ); if ( !$fsFile ) { - if ( $src->fileExists( array( 'src' => $srcPath ) ) === false ) { + $src->clearCache( array( $srcPath ) ); + if ( $src->fileExists( array( 'src' => $srcPath, 'latest' => 1 ) ) === false ) { $this->error( "$wikiId: File '$srcPath' was listed but does not exist." ); - continue; } else { $this->error( "$wikiId: Could not get local copy of $srcPath." ); }