Issue Bug Closed

#65153Fatal in install tool if options have been set for cache_classes or cache_core

Christian Kuhn 02/18/15, 19:16 updated 10/02/18, 11:47

Description

Reproduce:
Set an option to cache_classes or cache_core in cacheConfiguration of LocalConfiguration.php. This is useful if those caches should be located outside document root – for security reasons or for multi-head webserver instances where this directory should not be shared.

LocalConfiguration:

'SYS' => array(
    'caching' => array(
        'cacheConfigurations' => array(
            'cache_classes' => array(
                'options' => array(
                    'cacheDirectory' => '/tmp/',
                ),
            ),
        ),
    ),

With this setting, calling the install tool will result in a fatal error:

Fatal error: Uncaught exception ‘InvalidArgumentException’ with message ‘Invalid cache backend option “cacheDirectory” for backend of type “TYPO3\CMS\Core\Cache\Backend\TransientMemoryBackend”’ in /myDocRoot/typo3/sysext/core/Classes/Cache/Backend/AbstractBackend.php on line 77

Reviews 2