From: Aaron Schulz Date: Fri, 12 Aug 2016 19:36:37 +0000 (-0700) Subject: Use cache TTL constant in InfoAction X-Git-Tag: 1.31.0-rc.0~6077^2 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=a11b0167c4bfde1b2388de50e668132fe041c82b;p=lhc%2Fweb%2Fwiklou.git Use cache TTL constant in InfoAction Change-Id: If9924863500af612eaaab1c8cd5c655466efdc97 --- 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();