Skip to content

Conversation

nalmar
Copy link

@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
];
}
$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['vhs_main'] ??= [];
$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['vhs_main'] += [
Copy link
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