[TASK] Replace static property caches in RootlineUtility
RootlineUtility uses a multi-staged cacheing logic. This contains the use of a dedicated rootline-cache, but also two static class internal caches. Static property caches are a horrable nightmare when it comes to keep proper clean state between test executions, beside it's a not really needed state on a non-static class. This change aims to replace the static property caches in RootlineUtility with the core runtime cache. Thus making the static properties obsolete, but keeping it until testing-framework can deal with the absence of the static properties. Remove them! `RootlineUtility::purgeCaches()` calls are replaced now with core runtime cache flush calls using tags to avoid flushing other unrelated runtime cache entries. This makes this method obsolete. This method was declared @internal, eliminate it! Additionally, default `$rootlineField` merging with the `$GLOBALS['TYPO3_CONF_VARS']['FE']['addRootLineFields']` is moved from RootlineUtility ...
Showing
- composer.lock 4 additions, 4 deletionscomposer.lock
- typo3/sysext/core/Classes/DataHandling/SlugHelper.php 3 additions, 2 deletionstypo3/sysext/core/Classes/DataHandling/SlugHelper.php
- typo3/sysext/core/Classes/Routing/SiteMatcher.php 3 additions, 2 deletionstypo3/sysext/core/Classes/Routing/SiteMatcher.php
- typo3/sysext/core/Classes/Utility/RootlineUtility.php 27 additions, 38 deletionstypo3/sysext/core/Classes/Utility/RootlineUtility.php
- typo3/sysext/core/Tests/Functional/Utility/RootlineUtilityTest.php 0 additions, 6 deletions...ext/core/Tests/Functional/Utility/RootlineUtilityTest.php
- typo3/sysext/core/Tests/Unit/Utility/RootlineUtilityTest.php 1 addition, 1 deletiontypo3/sysext/core/Tests/Unit/Utility/RootlineUtilityTest.php
Please register or sign in to comment