chore: update redis config
This commit is contained in:
@@ -47,22 +47,42 @@ if (getenv('IS_DDEV_PROJECT') == 'true') {
|
||||
);
|
||||
}
|
||||
|
||||
$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['cache_pages'] = [
|
||||
// Fail fast instead of blocking indefinitely when redis is unreachable.
|
||||
$redisOptions['connectionTimeout'] = 2;
|
||||
|
||||
// Note: the cache identifiers must stay unprefixed ('pages', not 'cache_pages'). These
|
||||
// assignments replace the definitions from LocalConfiguration.php wholesale, so 'groups'
|
||||
// and the compression/lifetime options have to be repeated here.
|
||||
$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['pages'] = [
|
||||
'frontend' => \TYPO3\CMS\Core\Cache\Frontend\VariableFrontend::class,
|
||||
'backend' => \TYPO3\CMS\Core\Cache\Backend\RedisBackend::class,
|
||||
'options' => $redisOptions + ['database' => 0],
|
||||
'options' => $redisOptions + [
|
||||
'database' => 0,
|
||||
'compression' => true,
|
||||
],
|
||||
'groups' => ['pages'],
|
||||
];
|
||||
|
||||
$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['cache_hash'] = [
|
||||
$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['hash'] = [
|
||||
'frontend' => \TYPO3\CMS\Core\Cache\Frontend\VariableFrontend::class,
|
||||
'backend' => \TYPO3\CMS\Core\Cache\Backend\RedisBackend::class,
|
||||
'options' => $redisOptions + ['database' => 1],
|
||||
'options' => $redisOptions + [
|
||||
'database' => 1,
|
||||
],
|
||||
'groups' => ['pages'],
|
||||
];
|
||||
|
||||
$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['cache_rootline'] = [
|
||||
// Own database: RedisBackend::flush() issues FLUSHDB and the keys carry no per-cache
|
||||
// prefix, so two caches sharing a database flush each other.
|
||||
$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['rootline'] = [
|
||||
'frontend' => \TYPO3\CMS\Core\Cache\Frontend\VariableFrontend::class,
|
||||
'backend' => \TYPO3\CMS\Core\Cache\Backend\RedisBackend::class,
|
||||
'options' => $redisOptions + ['database' => 1],
|
||||
'options' => $redisOptions + [
|
||||
'database' => 2,
|
||||
'compression' => true,
|
||||
'defaultLifetime' => 2592000,
|
||||
],
|
||||
'groups' => ['pages'],
|
||||
];
|
||||
|
||||
// suppress php deprecation warnings flooding typo3 logs
|
||||
|
||||
Reference in New Issue
Block a user