summaryrefslogtreecommitdiffstats
path: root/system/libraries/Cache/drivers/Cache_memcached.php
diff options
context:
space:
mode:
authortianhe1986 <w1s2j3229@163.com>2018-01-05 15:50:05 +0100
committertianhe1986 <w1s2j3229@163.com>2018-01-05 15:50:05 +0100
commitd77ceeaf3d7c506a050163af40f4a6bb1e1f2a38 (patch)
tree56f5aa060d5a3441fb8bfe772ba9100f32581966 /system/libraries/Cache/drivers/Cache_memcached.php
parentf87fb6dd6c5406029bb1a26d6ba6933d4a69d26e (diff)
Do not retry after calling add()
Signed-off-by: tianhe1986 <w1s2j3229@163.com>
Diffstat (limited to 'system/libraries/Cache/drivers/Cache_memcached.php')
-rw-r--r--system/libraries/Cache/drivers/Cache_memcached.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/system/libraries/Cache/drivers/Cache_memcached.php b/system/libraries/Cache/drivers/Cache_memcached.php
index 8b6af84db..1562569e8 100644
--- a/system/libraries/Cache/drivers/Cache_memcached.php
+++ b/system/libraries/Cache/drivers/Cache_memcached.php
@@ -212,7 +212,7 @@ class CI_Cache_memcached extends CI_Driver {
{
if (($result = $this->_memcached->increment($id, $offset)) === FALSE)
{
- return $this->_memcached->add($id, $offset) ? $offset : $this->_memcached->increment($id, $offset);
+ return $this->_memcached->add($id, $offset) ? $offset : FALSE;
}
return $result;
@@ -231,7 +231,7 @@ class CI_Cache_memcached extends CI_Driver {
{
if (($result = $this->_memcached->decrement($id, $offset)) === FALSE)
{
- return $this->_memcached->add($id, 0) ? 0 : $this->_memcached->decrement($id, $offset);
+ return $this->_memcached->add($id, 0) ? 0 : FALSE;
}
return $result;