Merge "Use cache TTL constant in InfoAction"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Fri, 12 Aug 2016 21:47:41 +0000 (21:47 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Fri, 12 Aug 2016 21:47:41 +0000 (21:47 +0000)
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();