From: Aaron Schulz Date: Tue, 26 Feb 2013 19:08:57 +0000 (-0800) Subject: [FileBackend] Process cache negatives for file SHA1 function. X-Git-Tag: 1.31.0-rc.0~20517^2 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_aide%28?a=commitdiff_plain;h=f44c768fba3948f2915d3f7a93172ac7254414ce;p=lhc%2Fweb%2Fwiklou.git [FileBackend] Process cache negatives for file SHA1 function. Change-Id: I2a6b801cd97e8ee1a678a43d5f6d01d3e9603637 --- 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;