Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change cache configuration to only override the minimum #19

Closed
sypets opened this issue May 29, 2017 · 1 comment
Closed

Change cache configuration to only override the minimum #19

sypets opened this issue May 29, 2017 · 1 comment

Comments

@sypets
Copy link
Contributor

sypets commented May 29, 2017

If the cache configuration is changed as recommended in the core api (https://docs.typo3.org/typo3cms/CoreApiReference/ApiOverview/CachingFramework/Configuration/Index.html#cache-configurations), it would be possible to set a different backend in LocalConfiguration.php / AddidtionalConfiguration.php. Currently the backend always defaults to the DatabaseBackend. I am not aware of any way to change the defaults. If you change the cache backend for rssdisplay in LocalConfiguration.php this will get overridden by rssdisplay/ext_localconf.php.

What I mean is change this:

$TYPO3_CONF_VARS['SYS']['caching']['cacheConfigurations']['rssdisplay'] = [
    'frontend' => 'TYPO3\CMS\Core\Cache\Frontend\StringFrontend',
//	'options' => array(),
    'groups' => ['all', 'rssdisplay']
];

to somthing like this:

$TYPO3_CONF_VARS['SYS']['caching']['cacheConfigurations']['rssdisplay']['frontend'] = \TYPO3\CMS\Core\Cache\Frontend\StringFrontend::class;
$TYPO3_CONF_VARS['SYS']['caching']['cacheConfigurations']['rssdisplay']['groups'] = array('all', 'rssdisplay');

I can create a pull request.

@fabarea
Copy link
Owner

fabarea commented May 29, 2017

Yes, please. Would be helpful.

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

No branches or pull requests

2 participants