jenkins-bot has submitted this change and it was merged.
Change subject: [FileBackend] Process cache negatives for SHA1 on file stat.
......................................................................
[FileBackend] Process cache negatives for SHA1 on file stat.
Change-Id: Idc9f82309d52818acf57adc9c4eb04370a7b422a
---
M includes/filebackend/FileBackendStore.php
1 file changed, 2 insertions(+), 0 deletions(-)
Approvals:
Demon: Looks good to me, approved
jenkins-bot: Verified
diff --git a/includes/filebackend/FileBackendStore.php
b/includes/filebackend/FileBackendStore.php
index ea379bc..e50355c 100644
--- a/includes/filebackend/FileBackendStore.php
+++ b/includes/filebackend/FileBackendStore.php
@@ -699,6 +699,8 @@
}
} 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"
);
--
To view, visit https://gerrit.wikimedia.org/r/62736
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Idc9f82309d52818acf57adc9c4eb04370a7b422a
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Aaron Schulz <[email protected]>
Gerrit-Reviewer: Demon <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits