Fixed bug #14455: [Performance] Wrong variable in t3lib_cache_memcachedbackend leads...
authorChristian Kuhn <lolli@schwarzbu.ch>
Sun, 6 Jun 2010 00:50:40 +0000 (00:50 +0000)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sun, 6 Jun 2010 00:50:40 +0000 (00:50 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@7810 709f56b5-9817-0410-a4d7-c38de5d9e867

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

index 2e0e1d7..100b57f 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2010-06-06  Christian Kuhn  <lolli@schwarzbu.ch>
+
+       * Fixed bug #14455: [Performance] Wrong variable in t3lib_cache_memcachedbackend leads to redundant data (Thanks to Dan Osipov)
+
 2010-06-05  Stanislas Rolland  <typo3@sjbr.ca>
 
        * Fixed bug #14625: htmlArea RTE: Inconsistant position of ok button
index 6f73a28..2acea29 100644 (file)
@@ -484,7 +484,7 @@ class t3lib_cache_backend_MemcachedBackend extends t3lib_cache_backend_AbstractB
 
                                        // Update identifier-to-tag index
                                $existingTags = $this->findTagsByIdentifier($entryIdentifier);
-                               if (array_search($entryIdentifier, $existingTags) === false) {
+                               if (array_search($tag, $existingTags) === FALSE) {
                                        $this->memcache->set($this->identifierPrefix . 'ident_' . $entryIdentifier,
                                                array_merge($existingTags, $tags));
                                }