Project

General

Profile

Actions

Bug #56657

closed

Caching framework specified in localconf.php is ignored by extbase

Added by Michiel Roos over 10 years ago. Updated over 10 years ago.

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

Actions #1

Updated by Georg Ringer over 10 years ago

but this is only in 4.5 that case... can you check that out=?

Actions #2

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.

Actions #3

Updated by Georg Ringer over 10 years ago

  • Status changed from New to Closed

resolved already, won't changed for 4.5

Actions

Also available in: Atom PDF