Aaron Schulz has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/62736


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(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/36/62736/1

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: newchange
Gerrit-Change-Id: Idc9f82309d52818acf57adc9c4eb04370a7b422a
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Aaron Schulz <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to