@@ -61,7 +61,7 @@ |
||
61 | 61 | $stopTime = microtime(true); |
62 | 62 | $computeTime = (int) ($stopTime - $startTime); |
63 | 63 | $recomputed = $cacheItem->set(DTO\Cache\ResultWrapper::wrap($result, $computeTime, $query->getTTL())) |
64 | - ->expiresAfter($query->getTTL()); |
|
64 | + ->expiresAfter($query->getTTL()); |
|
65 | 65 | |
66 | 66 | $this->cachePool->save($recomputed); |
67 | 67 |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | 'recomputeSeconds' => $this->recomputeSeconds, |
43 | 43 | 'ttl' => $this->ttl, |
44 | 44 | 'storedTimestamp' => $this->getTimeStamp(), |
45 | - ]); |
|
45 | + ]); |
|
46 | 46 | } |
47 | 47 | |
48 | 48 | /** |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | public function willProbablyExpireSoon(): bool |
69 | 69 | { |
70 | 70 | return ($this->getTimeStamp() - $this->recomputeSeconds * 1 * log(mt_rand() / mt_getrandmax()) |
71 | - > $this->expiresAfterTimestamp()); |
|
71 | + > $this->expiresAfterTimestamp()); |
|
72 | 72 | } |
73 | 73 | |
74 | 74 | private function expiresAfterTimestamp(): int |