diff options
author | Sean Fisher <srtfisher@gmail.com> | 2012-01-16 15:23:14 +0100 |
---|---|---|
committer | Sean Fisher <srtfisher@gmail.com> | 2012-01-16 15:23:14 +0100 |
commit | 7bb95dff569f465ad8887404c2f9d5304a2ff5b3 (patch) | |
tree | 3f49040d696e760381642f2d2ffa407cee1dc039 /system | |
parent | fc514ca3578c59753e059fd6b8a2415424850535 (diff) |
APC throws "apc_store() expects parameter 3 to be long, string given". Validates the TTL to an integer.
Diffstat (limited to 'system')
-rw-r--r-- | system/libraries/Cache/drivers/Cache_apc.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/system/libraries/Cache/drivers/Cache_apc.php b/system/libraries/Cache/drivers/Cache_apc.php index 93993d07a..a3dd46978 100644 --- a/system/libraries/Cache/drivers/Cache_apc.php +++ b/system/libraries/Cache/drivers/Cache_apc.php @@ -68,6 +68,7 @@ class CI_Cache_apc extends CI_Driver { */ public function save($id, $data, $ttl = 60) { + $ttl = (int) $ttl; return apc_store($id, array($data, time(), $ttl), $ttl); } |