diff options
author | Aaron Schulz <aschulz@wikimedia.org> | 2013-02-26 11:08:57 -0800 |
---|---|---|
committer | Aaron Schulz <aschulz@wikimedia.org> | 2013-02-26 11:09:36 -0800 |
commit | f44c768fba3948f2915d3f7a93172ac7254414ce (patch) | |
tree | 4fd222c347edac4d3d2a689e8df382a7e6191343 /includes/filebackend | |
parent | 019ede87172494f1e2352926095b81d201723eee (diff) | |
download | mediawikicore-f44c768fba3948f2915d3f7a93172ac7254414ce.tar.gz mediawikicore-f44c768fba3948f2915d3f7a93172ac7254414ce.zip |
[FileBackend] Process cache negatives for file SHA1 function.
Change-Id: I2a6b801cd97e8ee1a678a43d5f6d01d3e9603637
Diffstat (limited to 'includes/filebackend')
-rw-r--r-- | includes/filebackend/FileBackendStore.php | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/includes/filebackend/FileBackendStore.php b/includes/filebackend/FileBackendStore.php index b906af53ce1e..53c2698e0d47 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; |