[FileBackend] Process cache negatives for SHA1 on file stat.
Change-Id: Idc9f82309d52818acf57adc9c4eb04370a7b422a
This commit is contained in:
parent
47b02c5030
commit
dfd2277cd1
1 changed files with 2 additions and 0 deletions
|
|
@ -699,6 +699,8 @@ abstract class FileBackendStore extends FileBackend {
|
|||
}
|
||||
} elseif ( $stat === false ) { // file does not exist
|
||||
$this->cheapCache->set( $path, 'stat', $latest ? 'NOT_EXIST_LATEST' : 'NOT_EXIST' );
|
||||
$this->cheapCache->set( $path, 'sha1', // the SHA-1 must be false too
|
||||
array( 'hash' => false, 'latest' => $latest ) );
|
||||
wfDebug( __METHOD__ . ": File $path does not exist.\n" );
|
||||
} else { // an error occurred
|
||||
wfDebug( __METHOD__ . ": Could not stat file $path.\n" );
|
||||
|
|
|
|||
Loading…
Reference in a new issue