commit | 96db8f91c34c18119548cacc4692362f51e70407 | [log] [tgz] |
---|---|---|
author | Phil Sturgeon <email@philsturgeon.co.uk> | Tue Jan 17 09:56:25 2012 -0800 |
committer | Phil Sturgeon <email@philsturgeon.co.uk> | Tue Jan 17 09:56:25 2012 -0800 |
tree | 3f49040d696e760381642f2d2ffa407cee1dc039 | |
parent | fc514ca3578c59753e059fd6b8a2415424850535 [diff] | |
parent | 7bb95dff569f465ad8887404c2f9d5304a2ff5b3 [diff] |
Merge pull request #931 from talkingwithsean/patch-1 APC Validate apc_store TTL
diff --git a/system/libraries/Cache/drivers/Cache_apc.php b/system/libraries/Cache/drivers/Cache_apc.php index 93993d0..a3dd469 100644 --- a/system/libraries/Cache/drivers/Cache_apc.php +++ b/system/libraries/Cache/drivers/Cache_apc.php
@@ -68,6 +68,7 @@ */ public function save($id, $data, $ttl = 60) { + $ttl = (int) $ttl; return apc_store($id, array($data, time(), $ttl), $ttl); }