#69173Introduce runtime cache for \TYPO3\CMS\Core\Utility\GeneralUtility::getIndpEnv()
Description
\TYPO3\CMS\Core\Utility\GeneralUtility::getIndpEnv() is called a lot and calls itself recursively as well.
The request to switch from one page to another one in BE (Page module) fires the method more than 1148 times.
According to xdebug profiling this makes up 84ms (63ms owntime).
By introducing a runtime cache the number of calls can be lowered to 162 for the same request, which brings the time metrics below 1ms.
Reviews 4
- main 58005[BUGFIX] Use runtime cache for getIndpEnv() for results which are NULL
- TYPO3_8-7 58006[BUGFIX] Use runtime cache for getIndpEnv() for results which are NULL
- TYPO3_7-6 58007[BUGFIX] Use runtime cache for getIndpEnv() for results which are NULL
- main 42732[TASK] Introduce runtime cache for getIndpEnv()