diff options
author | Phil Sturgeon <email@philsturgeon.co.uk> | 2012-01-17 18:56:25 +0100 |
---|---|---|
committer | Phil Sturgeon <email@philsturgeon.co.uk> | 2012-01-17 18:56:25 +0100 |
commit | 96db8f91c34c18119548cacc4692362f51e70407 (patch) | |
tree | 3f49040d696e760381642f2d2ffa407cee1dc039 /system | |
parent | fc514ca3578c59753e059fd6b8a2415424850535 (diff) | |
parent | 7bb95dff569f465ad8887404c2f9d5304a2ff5b3 (diff) |
Merge pull request #931 from talkingwithsean/patch-1
APC Validate apc_store TTL
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); } |