Allows cache configuration to be overridden#1955
Open
nalmar wants to merge 1 commit intoFluidTYPO3:developmentfrom
Open
Allows cache configuration to be overridden#1955nalmar wants to merge 1 commit intoFluidTYPO3:developmentfrom
nalmar wants to merge 1 commit intoFluidTYPO3:developmentfrom
Conversation
…ile keeping extension defaults for non-overridden values
NamelessCoder
requested changes
Sep 1, 2025
| ]; | ||
| } | ||
| $GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['vhs_main'] ??= []; | ||
| $GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['vhs_main'] += [ |
Member
There was a problem hiding this comment.
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.