diff options
author | John Bellone <jb@thunkbrightly.com> | 2011-08-21 16:41:21 +0200 |
---|---|---|
committer | John Bellone <jb@thunkbrightly.com> | 2011-08-21 16:41:21 +0200 |
commit | c456b4ad895d4b2f6f290038bc78ae53390d5f70 (patch) | |
tree | b2f667412bf277cce395926ec8f65d1a4579580c /system/libraries/Cache | |
parent | 43194ea1af658914a89ca49aed4dca4617b9c4ff (diff) |
Changing to set as add will not save over existing value
Diffstat (limited to 'system/libraries/Cache')
-rw-r--r-- | system/libraries/Cache/drivers/Cache_memcached.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/libraries/Cache/drivers/Cache_memcached.php b/system/libraries/Cache/drivers/Cache_memcached.php index ec2fd216a..a9baf22c5 100644 --- a/system/libraries/Cache/drivers/Cache_memcached.php +++ b/system/libraries/Cache/drivers/Cache_memcached.php @@ -64,7 +64,7 @@ class CI_Cache_memcached extends CI_Driver { */ public function save($id, $data, $ttl = 60) { - return $this->_memcached->add($id, array($data, time(), $ttl), $ttl); + return $this->_memcached->set($id, array($data, time(), $ttl), $ttl); } // ------------------------------------------------------------------------ |