[BUGFIX] Too many tags by identifier in CacheBackends 92/33592/2
authorMichael Stucki <michael.stucki@typo3.org>
Fri, 24 Oct 2014 09:38:52 +0000 (11:38 +0200)
committerMichael Stucki <michael.stucki@typo3.org>
Fri, 31 Oct 2014 08:10:31 +0000 (09:10 +0100)
commitf56c52f135be009fc9290a1a7abfa5fe1a667bde
treed32f519e13cce5c9ffdcba82f8a630fb02c3bd9f
parent528429b946be603131b83bc4063ba226fc2ac959
[BUGFIX] Too many tags by identifier in CacheBackends

This patch is a backport of 3d93017022a8ef03842d75f2d7bd3912365c95be.

Applies to Apc/Memcached 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: #62513
Releases: 4.5
Change-Id: Ia4713eeb399a4770b2c23e5738e076a91afe2a64
Reviewed-on: http://review.typo3.org/33592
Reviewed-by: Markus Klein <klein.t3@reelworx.at>
Reviewed-by: Michael Stucki <michael.stucki@typo3.org>
Tested-by: Michael Stucki <michael.stucki@typo3.org>
t3lib/cache/backend/class.t3lib_cache_backend_apcbackend.php
t3lib/cache/backend/class.t3lib_cache_backend_memcachedbackend.php
tests/t3lib/cache/backend/t3lib_cache_backend_apcbackendTest.php
tests/t3lib/cache/backend/t3lib_cache_backend_memcachedbackendTest.php