Use cache TTL constant in InfoAction
authorAaron Schulz <aschulz@wikimedia.org>
Fri, 12 Aug 2016 19:36:37 +0000 (12:36 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Fri, 12 Aug 2016 19:36:37 +0000 (12:36 -0700)
Change-Id: If9924863500af612eaaab1c8cd5c655466efdc97

includes/actions/InfoAction.php

index 7be2aa7..ea66900 100644 (file)
@@ -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();