Skip to content

Commit c38927f

Browse files
committed
Fixed unintended side-effect
1 parent 54ce900 commit c38927f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Phpfastcache/Core/Pool/DriverBaseTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ public function driverPreWrap(ExtendedCacheItemInterface $item, bool $stringifyD
150150
];
151151

152152
if ($this->getConfig()->isItemDetailedDate()) {
153-
$wrap[self::DRIVER_MDATE_WRAPPER_INDEX] = $item->getModificationDate();
153+
$wrap[self::DRIVER_MDATE_WRAPPER_INDEX] = new DateTime();// Always on the latest date
154154
/**
155155
* If the creation date exists
156156
* reuse it else set a new Date

0 commit comments

Comments
 (0)