jenkins-bot has submitted this change and it was merged.

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(-)

Approvals:
  Legoktm: Looks good to me, approved
  jenkins-bot: Verified



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: merged
Gerrit-Change-Id: If9924863500af612eaaab1c8cd5c655466efdc97
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Aaron Schulz <[email protected]>
Gerrit-Reviewer: Legoktm <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to