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:
b4edbc0
)
[FileRepo] Lowered negative caching duration.
author
Aaron Schulz
<aschulz@wikimedia.org>
Thu, 24 Jan 2013 21:31:40 +0000
(13:31 -0800)
committer
Aaron Schulz
<aschulz@wikimedia.org>
Mon, 28 Jan 2013 17:49:20 +0000
(09:49 -0800)
Change-Id: I288ce2eef3cf547e254843c7f806925ee44391ca
includes/filerepo/file/LocalFile.php
patch
|
blob
|
history
diff --git
a/includes/filerepo/file/LocalFile.php
b/includes/filerepo/file/LocalFile.php
index
9babe5a
..
6c20eb1
100644
(file)
--- a/
includes/filerepo/file/LocalFile.php
+++ b/
includes/filerepo/file/LocalFile.php
@@
-252,7
+252,8
@@
class LocalFile extends File {
}
}
- $wgMemc->set( $key, $cache, 60 * 60 * 24 * 7 ); // A week
+ // Cache presence for 1 week and negatives for 1 day
+ $wgMemc->set( $key, $cache, $this->fileExists ? 86400 * 7 : 86400 );
}
/**