diff options
author | katsew <y.katsew@gmail.com> | 2017-02-20 13:15:08 +0100 |
---|---|---|
committer | katsew <y.katsew@gmail.com> | 2017-02-20 13:15:08 +0100 |
commit | 1a66dd27a332797a5b11c0b8e90a579338d64268 (patch) | |
tree | eabb95b06c14ed4c3b9a938b6bec81a7f920287d | |
parent | a729f757bf2c5ef45ae45f9101879f5fdf5a2c0e (diff) |
Remove serialization/deserialization array
Signed-off-by: katsew <y.katsew@gmail.com>
-rw-r--r-- | system/libraries/Cache/drivers/Cache_apcu.php | 6 |
1 files changed, 3 insertions, 3 deletions
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 ); } |