diff --git a/src/Adapter/Apcu/ApcuCachePool.php b/src/Adapter/Apcu/ApcuCachePool.php index de11f580..545e4ade 100644 --- a/src/Adapter/Apcu/ApcuCachePool.php +++ b/src/Adapter/Apcu/ApcuCachePool.php @@ -49,7 +49,7 @@ protected function fetchObjectFromCache($key) if (!$success) { return [false, null, [], null]; } - list($data, $tags, $timestamp) = unserialize($cacheData); + list($data, $tags, $timestamp) = $cacheData; return [$success, $data, $tags, $timestamp]; } @@ -85,7 +85,7 @@ protected function storeItemInCache(PhpCacheItem $item, $ttl) return false; } - return apcu_store($item->getKey(), serialize([$item->get(), $item->getTags(), $item->getExpirationTimestamp()]), $ttl); + return apcu_store($item->getKey(), [$item->get(), $item->getTags(), $item->getExpirationTimestamp()], $ttl); } /**