Skip to content
Snippets Groups Projects
Commit 874c3758 authored by Christian Eßl's avatar Christian Eßl Committed by Benni Mack
Browse files

[TASK] Disable InMemoryLogWriter in CLI mode

Do not register InMemoryLogWriter in cli mode, as it is not needed here
or used later in any way, and will just fill up the memory and slow down
the script execution, if many log messages are written to it.

Resolves: #89928
Releases: master, 9.5
Change-Id: I6500fe8a1ba534a669ee1a6b8a4df0857be54e38
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/63555


Tested-by: default avatarTYPO3com <noreply@typo3.com>
Tested-by: default avatarSusanne Moog <look@susi.dev>
Tested-by: default avatarBenni Mack <benni@typo3.org>
Reviewed-by: default avatarSusanne Moog <look@susi.dev>
Reviewed-by: default avatarBenni Mack <benni@typo3.org>
parent 73b2c9eb
Branches
Tags
No related merge requests found
......@@ -61,7 +61,10 @@ $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['adminpanel']['modules'] = [
$GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['adminPanel_save']
= \TYPO3\CMS\Adminpanel\Controller\AjaxController::class . '::saveDataAction';
$GLOBALS['TYPO3_CONF_VARS']['LOG']['writerConfiguration'][\TYPO3\CMS\Core\Log\LogLevel::DEBUG][\TYPO3\CMS\Adminpanel\Log\InMemoryLogWriter::class] = [];
// Only write to InMemoryLog if in frontend and not in CLI mode
if (TYPO3_MODE === 'FE' && !\TYPO3\CMS\Core\Core\Environment::isCli()) {
$GLOBALS['TYPO3_CONF_VARS']['LOG']['writerConfiguration'][\TYPO3\CMS\Core\Log\LogLevel::DEBUG][\TYPO3\CMS\Adminpanel\Log\InMemoryLogWriter::class] = [];
}
if (!is_array($GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['adminpanel_requestcache'])) {
$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['adminpanel_requestcache'] = [];
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment