Revert "CACHE_TTL -> CACHING_TIMEOUT"

This reverts commit fbaa3dd2cd.

Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
pull/66/head
Maxence Lange 2018-11-28 14:52:31 -01:00
rodzic fbaa3dd2cd
commit 8102d81f91
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -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();