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

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

index df88b13..b3a3cd4 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
 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)
        * Follow-up to #16591: Make getClassName() non recursive (Thanks to Pierre Dudoret)
 
 2011-02-10  Christian Kuhn  <lolli@schwarzbu.ch>
index 6c245af..1e9fbbd 100644 (file)
@@ -337,7 +337,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);
        }
 
        /**
@@ -487,13 +487,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);
                }
        }