Actions
Bug #56657
closedCaching framework specified in localconf.php is ignored by extbase
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2014-03-07
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
4.5
PHP Version:
5.3
Tags:
Complexity:
no-brainer
Is Regression:
No
Sprint Focus:
Description
An attempt to override the cacheConfiguration for extbase as suggested in the wiki (http://wiki.typo3.org/Caching_framework) will fail:
$TYPO3_CONF_VARS['SYS']['caching']['cacheConfigurations']['cache_extbase_object']['backend'] = 't3lib_cache_backend_RedisBackend'; $TYPO3_CONF_VARS['SYS']['caching']['cacheConfigurations']['cache_extbase_object']['options'] = array(); $TYPO3_CONF_VARS['SYS']['caching']['cacheConfigurations']['cache_extbase_reflection']['backend'] = 't3lib_cache_backend_RedisBackend'; $TYPO3_CONF_VARS['SYS']['caching']['cacheConfigurations']['cache_extbase_reflection']['options'] = array();
The result is that the default Db backend will be used.
This is because extbase/ext_localconf.php has the following lines:
// use own cache tables // Reflection cache: $GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['cache_extbase_reflection'] = array( 'frontend' => 't3lib_cache_frontend_VariableFrontend', 'backend' => 't3lib_cache_backend_DbBackend', 'options' => array( 'cacheTable' => 'tx_extbase_cache_reflection', 'tagsTable' => 'tx_extbase_cache_reflection_tags', ), ); // Object container cache: $GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['cache_extbase_object'] = array( 'frontend' => 't3lib_cache_frontend_VariableFrontend', 'backend' => 't3lib_cache_backend_DbBackend', 'options' => array( 'cacheTable' => 'tx_extbase_cache_object', 'tagsTable' => 'tx_extbase_cache_object_tags', ), );
This will overwrite any information specified in localconf.php
Updated by Georg Ringer over 10 years ago
but this is only in 4.5 that case... can you check that out=?
Updated by Pascal Dürsteler over 10 years ago
Is overrideable in 4.7, at least for me, I've put the whole extbase into a memcached backend without troubles.
Updated by Georg Ringer over 10 years ago
- Status changed from New to Closed
resolved already, won't changed for 4.5
Actions