[FileBackend] Process cache negatives for file SHA1 function.
authorAaron Schulz <aschulz@wikimedia.org>
Tue, 26 Feb 2013 19:08:57 +0000 (11:08 -0800)
committerAaron Schulz <aschulz@wikimedia.org>
Tue, 26 Feb 2013 19:09:36 +0000 (11:09 -0800)
Change-Id: I2a6b801cd97e8ee1a678a43d5f6d01d3e9603637

includes/filebackend/FileBackendStore.php

index b906af5..53c2698 100644 (file)
@@ -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;