[BUGFIX] Instantiate Logger on cache backend creation 72/61472/5
authorAnja Leichsenring <aleichsenring@ab-softlab.de>
Wed, 7 Aug 2019 11:38:15 +0000 (13:38 +0200)
committerAndreas Fernandez <a.fernandez@scripting-base.de>
Thu, 8 Aug 2019 11:29:58 +0000 (13:29 +0200)
commit524b6701fa0e690f5239fefb0024b58f7767cfcd
treeab59b1808931cc25552c8ce756a75297d754ee46
parente3851da9b34e823d565dfe721939fcf9bbda5d46
[BUGFIX] Instantiate Logger on cache backend creation

Cache backends are created via new, not using GU::makeInstance.
So it happened no cache has been initialized, causing errors upon
calls for the logger.
Putting cache creation into the cache backend constructor solves
the problem and makes sure the logger is always available.

Resolves: #88775
Resolves: #87820
Releases: master, 9.5
Change-Id: I4005b812e96c028528f3740c581b8086cfc592f0
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/61472
Tested-by: TYPO3com <noreply@typo3.com>
Tested-by: Frank Naegler <frank.naegler@typo3.org>
Tested-by: Andreas Fernandez <a.fernandez@scripting-base.de>
Reviewed-by: Frank Naegler <frank.naegler@typo3.org>
Reviewed-by: Andreas Fernandez <a.fernandez@scripting-base.de>
typo3/sysext/core/Classes/Cache/Backend/AbstractBackend.php
typo3/sysext/core/Tests/Functional/Cache/Backend/RedisBackendTest.php
typo3/sysext/core/Tests/Unit/Cache/Backend/AbstractBackendTest.php
typo3/sysext/core/Tests/Unit/Cache/Backend/ApcuBackendTest.php
typo3/sysext/core/Tests/Unit/Cache/Backend/FileBackendTest.php
typo3/sysext/core/Tests/Unit/Cache/Backend/TransientMemoryBackendTest.php
typo3/sysext/core/Tests/Unit/Cache/Backend/Typo3DatabaseBackendTest.php