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:
c0d3fe5
)
Use cache TTL constant in InfoAction
author
Aaron Schulz
<aschulz@wikimedia.org>
Fri, 12 Aug 2016 19:36:37 +0000
(12:36 -0700)
committer
Aaron Schulz
<aschulz@wikimedia.org>
Fri, 12 Aug 2016 19:36:37 +0000
(12:36 -0700)
Change-Id: If9924863500af612eaaab1c8cd5c655466efdc97
includes/actions/InfoAction.php
patch
|
blob
|
history
diff --git
a/includes/actions/InfoAction.php
b/includes/actions/InfoAction.php
index
7be2aa7
..
ea66900
100644
(file)
--- a/
includes/actions/InfoAction.php
+++ b/
includes/actions/InfoAction.php
@@
-671,7
+671,7
@@
class InfoAction extends FormlessAction {
return ObjectCache::getMainWANInstance()->getWithSetCallback(
self::getCacheKey( $page->getTitle(), $page->getLatest() ),
-
86400 * 7
,
+
WANObjectCache::TTL_WEEK
,
function ( $oldValue, &$ttl, &$setOpts ) use ( $page, $config, $fname ) {
$title = $page->getTitle();
$id = $title->getArticleID();