From f44c768fba3948f2915d3f7a93172ac7254414ce Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Tue, 26 Feb 2013 11:08:57 -0800 Subject: [PATCH] [FileBackend] Process cache negatives for file SHA1 function. Change-Id: I2a6b801cd97e8ee1a678a43d5f6d01d3e9603637 --- includes/filebackend/FileBackendStore.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/includes/filebackend/FileBackendStore.php b/includes/filebackend/FileBackendStore.php index b906af53ce..53c2698e0d 100644 --- a/includes/filebackend/FileBackendStore.php +++ b/includes/filebackend/FileBackendStore.php @@ -767,10 +767,7 @@ abstract class FileBackendStore extends FileBackend { $hash = $this->doGetFileSha1Base36( $params ); wfProfileOut( __METHOD__ . '-miss-' . $this->name ); wfProfileOut( __METHOD__ . '-miss' ); - if ( $hash ) { // don't cache negatives - $this->cheapCache->set( $path, 'sha1', - array( 'hash' => $hash, 'latest' => $latest ) ); - } + $this->cheapCache->set( $path, 'sha1', array( 'hash' => $hash, 'latest' => $latest ) ); wfProfileOut( __METHOD__ . '-' . $this->name ); wfProfileOut( __METHOD__ ); return $hash; -- 2.20.1