Fixed bug #15721: Memcache::delete() without timeout param causes loss of memcache...
authorChristian Kuhn <lolli@schwarzbu.ch>
Fri, 11 Feb 2011 22:20:58 +0000 (22:20 +0000)
committerChristian Kuhn <lolli@schwarzbu.ch>
Fri, 11 Feb 2011 22:20:58 +0000 (22:20 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/branches/TYPO3_4-3@10441 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/cache/backend/class.t3lib_cache_backend_memcachedbackend.php

index aa1555c..b7af4f1 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2011-02-11  Christian Kuhn  <lolli@schwarzbu.ch>
+
+       * Fixed bug #15721: Memcache::delete() without timeout param causes loss of memcache server in pool (Thanks to Michiel Ross)
+
 2011-02-02  Christian Kuhn  <lolli@schwarzbu.ch>
 
        * Fixed bug #17087: BE user password not changable via setup module with "saltedpasswords" (Thanks to Marcus Krause)
index 637ba05..f86bc06 100644 (file)
@@ -324,7 +324,7 @@ class t3lib_cache_backend_MemcachedBackend extends t3lib_cache_backend_AbstractB
         */
        public function remove($entryIdentifier) {
                $this->removeIdentifierFromAllTags($entryIdentifier);
-               return $this->memcache->delete($this->identifierPrefix . $entryIdentifier);
+               return $this->memcache->delete($this->identifierPrefix . $entryIdentifier, 0);
        }
 
        /**
@@ -474,13 +474,13 @@ class t3lib_cache_backend_MemcachedBackend extends t3lib_cache_backend_AbstractB
                                                        $identifiers
                                                );
                                        } else {
-                                               $this->memcache->delete($this->identifierPrefix . 'tag_' . $tag);
+                                               $this->memcache->delete($this->identifierPrefix . 'tag_' . $tag, 0);
                                        }
                                }
                        }
 
                                // Clear reverse tag index for this identifier
-                       $this->memcache->delete($this->identifierPrefix . 'ident_' . $entryIdentifier);
+                       $this->memcache->delete($this->identifierPrefix . 'ident_' . $entryIdentifier, 0);
                }
        }