From 8102d81f91dc3a50bc575bf76cb22cf338560298 Mon Sep 17 00:00:00 2001 From: Maxence Lange Date: Wed, 28 Nov 2018 14:52:31 -0100 Subject: [PATCH] Revert "CACHE_TTL -> CACHING_TIMEOUT" This reverts commit fbaa3dd2cdc589545b4caaadc58572d1dfba07c6. Signed-off-by: Maxence Lange --- lib/Db/CacheActorsRequest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Db/CacheActorsRequest.php b/lib/Db/CacheActorsRequest.php index 4e6b6c17..b8f154e7 100644 --- a/lib/Db/CacheActorsRequest.php +++ b/lib/Db/CacheActorsRequest.php @@ -42,7 +42,7 @@ use OCP\IDBConnection; class CacheActorsRequest extends CacheActorsRequestBuilder { - const CACHING_TIMEOUT = 60 * 24; // 1d + const CACHE_TTL = 60 * 24; // 1d /** * CacheActorsRequest constructor. @@ -180,7 +180,7 @@ class CacheActorsRequest extends CacheActorsRequestBuilder { public function getRemoteActorsToUpdate(): array { $qb = $this->getCacheActorsSelectSql(); $this->limitToLocal($qb, false); - $this->limitToCreation($qb, self::CACHING_TIMEOUT); + $this->limitToCreation($qb, self::CACHE_TTL); $update = []; $cursor = $qb->execute();