From a11b0167c4bfde1b2388de50e668132fe041c82b Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Fri, 12 Aug 2016 12:36:37 -0700 Subject: [PATCH] Use cache TTL constant in InfoAction Change-Id: If9924863500af612eaaab1c8cd5c655466efdc97 --- includes/actions/InfoAction.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/actions/InfoAction.php b/includes/actions/InfoAction.php index 7be2aa7566..ea66900f69 100644 --- 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(); -- 2.20.1