From 1a66dd27a332797a5b11c0b8e90a579338d64268 Mon Sep 17 00:00:00 2001 From: katsew Date: Mon, 20 Feb 2017 21:15:08 +0900 Subject: Remove serialization/deserialization array Signed-off-by: katsew --- system/libraries/Cache/drivers/Cache_apcu.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'system/libraries/Cache') diff --git a/system/libraries/Cache/drivers/Cache_apcu.php b/system/libraries/Cache/drivers/Cache_apcu.php index 56e553395..9b7fe877c 100644 --- a/system/libraries/Cache/drivers/Cache_apcu.php +++ b/system/libraries/Cache/drivers/Cache_apcu.php @@ -82,7 +82,7 @@ class CI_Cache_apcu extends CI_Driver { if ($success === TRUE) { return is_array($data) - ? unserialize($data[0]) + ? $data[0] : $data; } @@ -106,7 +106,7 @@ class CI_Cache_apcu extends CI_Driver { return apcu_store( $id, - ($raw === TRUE ? $data : array(serialize($data), time(), $ttl)), + ($raw === TRUE ? $data : array($data, time(), $ttl)), $ttl ); } @@ -199,7 +199,7 @@ class CI_Cache_apcu extends CI_Driver { return array( 'expire' => $time + $ttl, 'mtime' => $time, - 'data' => unserialize($data) + 'data' => $data ); } -- cgit v1.2.3-24-g4f1b