Project

General

Profile

Actions

Bug #60805

closed

Cachingframework FileBackend not usable for cache_pages and cache_pagesection

Added by Marco Huber over 9 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2014-08-05
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

If you want to use t3lib_cache_backend_FileBackend for cache_pages or cache_pagesection you get the Exception 1231267498 (typo3/sysext/core/Classes/Cache/Backend/AbstractBackend.php Line 86). This happens because the LocalConfiguration-array ist overwritten with the DefaultConfiguration somewhere. And in DefaultConfiguration the option "compress" is set. And "compress" is no valid option for t3lib_cache_backend_FileBackend.
To work around this issue you have to set "$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['cache_pages']['options'] = array();" in the AdditionalConfiguration.

Perhaps some other options for other cache backends produce this exception, too. I haven't testet that.

I don't know if this is really a bug, but at least it is very annoying and costed me some time to find out. :-)

LocalConfiguration:

...
    'SYS' => array(
        'caching' => array(
            'cacheConfigurations' => array(
                'cache_pages' => array(
                    'backend' => 't3lib_cache_backend_FileBackend',
                    'frontend' => 't3lib_cache_frontend_VariableFrontend',
                    'groups' => array('pages', 'all'),
                ),
                'cache_pagesection' => array(
                    'backend' => 't3lib_cache_backend_FileBackend',
                    'frontend' => 't3lib_cache_frontend_VariableFrontend',
                    'groups' => array('pages', 'all'),
                ),
...

P.S.: I know, the wiki says that the FileBackend should not be used for cache_pages (http://wiki.typo3.org/Caching_framework#Cache_configurations), but we have to. :-)

Actions

Also available in: Atom PDF