Skip to content

Commit 4e309fd

Browse files
committed
#184: Fix ttl for xFetch algo
1 parent 447f023 commit 4e309fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Extension/CacheTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ private function getXFetched(Request $request, SqlOptions $sqlOptions)
9494
$hashKey = $this->getKeyHash($request);
9595
$delta = Redis::get($this->getDeltaKey($hashKey));
9696
$ttl = $this->configOptions->getCacheTtl();
97-
$recompute = $this->xFetch((float)$delta, $ttl);
97+
$recompute = $this->xFetch((float)$delta, Redis::ttl($hashKey));
9898
if ($delta === null || $recompute === true) {
9999
return $this->recompute($sqlOptions, $hashKey, $ttl);
100100
}

0 commit comments

Comments
 (0)