Aaron Schulz has uploaded a new change for review.
https://gerrit.wikimedia.org/r/304500
Change subject: Use cache TTL constant in InfoAction
......................................................................
Use cache TTL constant in InfoAction
Change-Id: If9924863500af612eaaab1c8cd5c655466efdc97
---
M includes/actions/InfoAction.php
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core
refs/changes/00/304500/1
diff --git a/includes/actions/InfoAction.php b/includes/actions/InfoAction.php
index 7be2aa7..ea66900 100644
--- a/includes/actions/InfoAction.php
+++ b/includes/actions/InfoAction.php
@@ -671,7 +671,7 @@
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();
--
To view, visit https://gerrit.wikimedia.org/r/304500
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: If9924863500af612eaaab1c8cd5c655466efdc97
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Aaron Schulz <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits