summaryrefslogtreecommitdiffstats
path: root/lib/Db
diff options
context:
space:
mode:
authorMaxence Lange <maxence@artificial-owl.com>2018-11-28 20:30:45 -0100
committerMaxence Lange <maxence@artificial-owl.com>2018-11-28 20:30:45 -0100
commit5947535544008d91a9d21581b64f1c83287cffdc (patch)
tree2b895da646a0d2e8d1daf61da45f5d1708b93870 /lib/Db
parent8102d81f91dc3a50bc575bf76cb22cf338560298 (diff)
CACHE_TTL -> CACHING_TIMEOUT
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'lib/Db')
-rw-r--r--lib/Db/CacheDocumentsRequest.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Db/CacheDocumentsRequest.php b/lib/Db/CacheDocumentsRequest.php
index 9064890b..46cdfd31 100644
--- a/lib/Db/CacheDocumentsRequest.php
+++ b/lib/Db/CacheDocumentsRequest.php
@@ -39,7 +39,7 @@ use OCP\DB\QueryBuilder\IQueryBuilder;
class CacheDocumentsRequest extends CacheDocumentsRequestBuilder {
- const CACHE_TTL = 5; // 5 min
+ const CACHING_TIMEOUT = 5; // 5 min
/**
@@ -149,7 +149,7 @@ class CacheDocumentsRequest extends CacheDocumentsRequestBuilder {
public function getNotCachedDocuments() {
$qb = $this->getCacheDocumentsSelectSql();
$this->limitToDBFieldEmpty($qb, 'local_copy');
- $this->limitToCaching($qb, self::CACHE_TTL);
+ $this->limitToCaching($qb, self::CACHING_TIMEOUT);
$documents = [];
$cursor = $qb->execute();