dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
019ede8
)
[FileBackend] Process cache negatives for file SHA1 function.
author
Aaron Schulz
<aschulz@wikimedia.org>
Tue, 26 Feb 2013 19:08:57 +0000
(11:08 -0800)
committer
Aaron Schulz
<aschulz@wikimedia.org>
Tue, 26 Feb 2013 19:09:36 +0000
(11:09 -0800)
Change-Id: I2a6b801cd97e8ee1a678a43d5f6d01d3e9603637
includes/filebackend/FileBackendStore.php
patch
|
blob
|
history
diff --git
a/includes/filebackend/FileBackendStore.php
b/includes/filebackend/FileBackendStore.php
index
b906af5
..
53c2698
100644
(file)
--- 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;