From b633233c04502f4d21c77312d1e04e1dae1617f0 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Mon, 27 Nov 2017 09:45:46 -0800 Subject: [PATCH] objectcache: make adaptiveTTL() use getCurrentTime() for completeness Change-Id: I5ba3c39ccaf412b0aaecd64d52ab15b2075bc76c --- includes/libs/objectcache/WANObjectCache.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/libs/objectcache/WANObjectCache.php b/includes/libs/objectcache/WANObjectCache.php index f5c561f504..ae7f36cefe 100644 --- a/includes/libs/objectcache/WANObjectCache.php +++ b/includes/libs/objectcache/WANObjectCache.php @@ -1558,7 +1558,7 @@ class WANObjectCache implements IExpiringStore, LoggerAwareInterface { return $minTTL; // no last-modified time provided } - $age = time() - $mtime; + $age = $this->getCurrentTime() - $mtime; return (int)min( $maxTTL, max( $minTTL, $factor * $age ) ); } -- 2.20.1