[BUGFIX] Remove runtime cache and early return from TemplatePaths
This patch removes the previously introduced runtime cache and early returns from TemplatePaths, both of which were implemented in an attempt to prevent excessive TypoScript parsing - an issue which has since been solved by optimising the TypoScript parsing enough that a cache and early return is no longer necessary (no longer constitutes a significant performance increase). The early return and caching introduced regressions described in the related forge issues. Removing both solves those problems. In addition, the method resolving TypoScript paths is now covered by extensive unit tests confirming everything from merging to sorting of template paths. An average of 8 tests cover the method's lines. Each of the expected behaviors is now declared as specific test. Change-Id: Ia6d505dcec7d77ad7aaeea9094d7d85a58553c63 Resolves: #82196 Resolves: #82181 Related: #79662 Releases: master, 8.7 Reviewed-on: https://review.typo3.org/53917 Tested-by:TYPO3com <no-reply@typo3.com> Reviewed-by:
Jigal van Hemert <jigal.van.hemert@typo3.org> Tested-by:
Jigal van Hemert <jigal.van.hemert@typo3.org> Reviewed-by:
Wouter Wolters <typo3@wouterwolters.nl> Reviewed-by:
Stefan Neufeind <typo3.neufeind@speedpartner.de> Reviewed-by:
Andreas Fernandez <typo3@scripting-base.de> Tested-by:
Andreas Fernandez <typo3@scripting-base.de>
This diff is collapsed.