[TYPO3-english] Re: best production cache backend
Viktor Livakivskyi
invisible.kinder at gmail.com
Thu Apr 9 17:15:54 CEST 2015
Hi,
> i have This default cache backend is always available as a fallback if APC is not available.
> how can i use another caching for typo3 big workspace page trees. Can i use opcache for this? how can i use it ?
We were experimenting with performance and ease of use within our workflow (instance per developer) and found, that Redis is the best option.
Configuring of it is done within AdditionalConfiguration.php in a way, like this:
$redisCacheOptions = [
'hostname' => 'localhost',
'port' => 6379,
'database' => 3, // unique for each developer
'password' => '[password goes here]',
];
$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['extbase_typo3dbbackend_tablecolumns']['backend'] = \TYPO3\CMS\Core\Cache\Backend\RedisBackend::class;
$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['extbase_typo3dbbackend_tablecolumns']['options'] = $redisCacheOptions;
$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['extbase_typo3dbbackend_tablecolumns']['groups'] = ['system'];
$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['extbase_typo3dbbackend_queries']['backend'] = \TYPO3\CMS\Core\Cache\Backend\RedisBackend::class;
$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['extbase_typo3dbbackend_queries']['options'] = $redisCacheOptions;
$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['extbase_typo3dbbackend_queries']['groups'] = ['system'];
//... etc.
The list of all caching configurations can be found at BE -> Configuration -> $GLOBALS['TYPO3_CONF_VARS'] (Global Configuration) -> SYS -> caching -> cacheConfigurations
We're overloading all the caches, that use database and leave all others (fileBackend, transientMemoryBackend, etc.)
More information about the TYPO3-english
mailing list