From: Aaron Schulz Date: Tue, 7 May 2013 21:15:11 +0000 (-0700) Subject: [FileBackend] Process cache negatives for SHA1 on file stat. X-Git-Tag: 1.31.0-rc.0~19734^2 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmembres/cotisations/gestion/rappel_supprimer.php?a=commitdiff_plain;h=dfd2277cd1dbac2839a91ccfb28ab88934d206c3;p=lhc%2Fweb%2Fwiklou.git [FileBackend] Process cache negatives for SHA1 on file stat. Change-Id: Idc9f82309d52818acf57adc9c4eb04370a7b422a --- diff --git a/includes/filebackend/FileBackendStore.php b/includes/filebackend/FileBackendStore.php index ea379bc911..e50355c597 100644 --- a/includes/filebackend/FileBackendStore.php +++ b/includes/filebackend/FileBackendStore.php @@ -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" );