[TASK] Remove static cache in StorageRepository 84/57684/2
authorChristian Kuhn <lolli@schwarzbu.ch>
Tue, 5 Jun 2018 23:12:07 +0000 (01:12 +0200)
committerAndreas Fernandez <a.fernandez@scripting-base.de>
Wed, 25 Jul 2018 19:36:38 +0000 (21:36 +0200)
commit0a6dec433c535b13fcece43dab46e88e2f0be2f6
tree482223aa63c41f1074fba6ccd87df6ac357fe108
parent9ced33d346268244c632dc1afd84decd0d7b00fe
[TASK] Remove static cache in StorageRepository

Class StorageRepository parks static state in property
$storageRowCache. This is ugly and needs proper reset
functionality. However, the class is also a singleton through
AbstractRepository, so there is no need to make $storageRowCache
static in the first place. Just making the property non-static
keeps all the functionality, and removes the hard to
evict static state at the same time.

Resolves: #85647
Releases: master
Change-Id: I6c8dd489b05f80f2450e1d39051da5b8e53c55a0
Reviewed-on: https://review.typo3.org/57684
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Andreas Fernandez <a.fernandez@scripting-base.de>
Tested-by: Andreas Fernandez <a.fernandez@scripting-base.de>
typo3/sysext/core/Classes/Resource/StorageRepository.php