We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a85a14 commit bedd300Copy full SHA for bedd300
1 file changed
lib/Phpfastcache/Core/Pool/TaggableCacheItemPoolTrait.php
@@ -361,17 +361,9 @@ protected function driverWriteTags(ExtendedCacheItemInterface $item): bool
361
* that has slow performances
362
*/
363
364
- $tagsItem->set(\array_merge((array)$data, [$item->getKey() => $expTimestamp]));
+ $tagsItem->set(\array_merge((array)$data, [$item->getKey() => $expTimestamp]))
365
+ ->expiresAt($item->getExpirationDate());
366
- /**
367
- * Set the expiration date
368
- * of the $tagsItem based
369
- * on the older $item
370
- * expiration date
371
- */
372
- if ($expTimestamp > $tagsItem->getExpirationDate()->getTimestamp()) {
373
- $tagsItem->expiresAt($item->getExpirationDate());
374
- }
375
$this->driverWrite($tagsItem);
376
$tagsItem->setHit(true);
377
}
0 commit comments