EllisLab/CodeIgniter — Issue #768: memcaced expiration time error
Author: zengca
Created: 2011-12-12 08:42:21+00:00
State: open

the item will never expire.

fix:

CodeIgniter/system/libraries/Cache/drivers/Cache_memcached.php

@@ -68,7 +68,7 @@

*/
public function save($id, $data, $ttl = 60)
{
-	return $this->_memcached->add($id, array($data, time(), $ttl), $ttl);
+	return $this->_memcached->add($id, array($data, time(), $ttl), FALSE, $ttl);
}

// ------------------------------------------------------------------------