35 lines
1.0 KiB
Plaintext
35 lines
1.0 KiB
Plaintext
# Redis configuration for TYPO3
|
|
# Add this to your TYPO3 AdditionalConfiguration.php or settings.php
|
|
|
|
# For TYPO3 v11/v12/v13 - AdditionalConfiguration.php
|
|
# Located at: /var/www/html/v13/config/system/additional.php
|
|
|
|
<?php
|
|
# Redis Cache Configuration
|
|
$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['pages'] = [
|
|
'backend' => \TYPO3\CMS\Core\Cache\Backend\RedisBackend::class,
|
|
'options' => [
|
|
'hostname' => 'redis',
|
|
'database' => 0,
|
|
'port' => 6379,
|
|
],
|
|
];
|
|
|
|
$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['pagesection'] = [
|
|
'backend' => \TYPO3\CMS\Core\Cache\Backend\RedisBackend::class,
|
|
'options' => [
|
|
'hostname' => 'redis',
|
|
'database' => 1,
|
|
'port' => 6379,
|
|
],
|
|
];
|
|
|
|
$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['rootline'] = [
|
|
'backend' => \TYPO3\CMS\Core\Cache\Backend\RedisBackend::class,
|
|
'options' => [
|
|
'hostname' => 'redis',
|
|
'database' => 2,
|
|
'port' => 6379,
|
|
],
|
|
];
|