Skip to content

Allows cache configuration to be overridden#1955

Open
nalmar wants to merge 1 commit intoFluidTYPO3:developmentfrom
nalmar:development
Open

Allows cache configuration to be overridden#1955
nalmar wants to merge 1 commit intoFluidTYPO3:developmentfrom
nalmar:development

Conversation

@nalmar
Copy link
Copy Markdown

@nalmar nalmar commented Aug 12, 2025

Allows vhs cache configuration to be overridden by additionnal.php while keeping extension defaults for non-overridden values.

if my case, I add 'backend' = 'TYPO3\CMS\Core\Cache\Backend\RedisBackend' and a custom defaultLifetime.

…ile keeping extension defaults for non-overridden values
Comment thread ext_localconf.php
];
}
$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['vhs_main'] ??= [];
$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['vhs_main'] += [
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Array union won't work as it isn't recursive. If both arrays contain the options or groups keys, the ones found in the original array will be used and the others will be ignored. It may work with array_merge_recursive or array_replace_recursive.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants