[BUGFIX] Too many tags by identifier in CacheBackends 67/30767/13
authorAlexander Opitz <opitz.alexander@googlemail.com>
Tue, 17 Jun 2014 07:58:32 +0000 (09:58 +0200)
committerMarkus Klein <klein.t3@mfc-linz.at>
Tue, 8 Jul 2014 20:42:55 +0000 (22:42 +0200)
commit3d93017022a8ef03842d75f2d7bd3912365c95be
tree10ff31bf56794247040b1536a2d80bba326e072d
parent97cfa181ec188cba2497abb28a6064869e0831ba
[BUGFIX] Too many tags by identifier in CacheBackends

This applies to Apc/Memcached/Wincache/Xcache backends.

After an array_merge the values aren't unique. This leads to duplicate
tags per identifier. This patch changes that and also moves the
findTagsByIdentifier call out of the foreach loop.

Resolves: #59587
Releases: 6.3, 6.2, 6.1
Change-Id: Id31e16fa4bba11038ba692a483fb9a33808d95fa
Reviewed-on: https://review.typo3.org/30767
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
Reviewed-by: Markus Klein
Tested-by: Markus Klein
typo3/sysext/core/Classes/Cache/Backend/ApcBackend.php
typo3/sysext/core/Classes/Cache/Backend/MemcachedBackend.php
typo3/sysext/core/Classes/Cache/Backend/WincacheBackend.php
typo3/sysext/core/Classes/Cache/Backend/XcacheBackend.php
typo3/sysext/core/Tests/Unit/Cache/Backend/ApcBackendTest.php
typo3/sysext/core/Tests/Unit/Cache/Backend/MemcachedBackendTest.php
typo3/sysext/core/Tests/Unit/Cache/Backend/WincacheBackendTest.php
typo3/sysext/core/Tests/Unit/Cache/Backend/XcacheBackendTest.php