[TYPO3-v4] What is happening with id 0?

Helmut Hummel helmut at typo3.org
Thu Sep 9 22:49:35 CEST 2010


Hi Steffen,

On 09.09.10 22:00, Steffen Kamper wrote:
> 
> i figured it out
> 
> $TYPO3_CONF_VARS['SYS']['caching']['cacheConfigurations']['cache_pages'] 
> = array(
>    'frontend' => 't3lib_cache_frontend_StringFrontend',
>    'backend' => 't3lib_cache_backend_DbBackend',
>    'options' => array(
>      'cacheTable' => 'cachingframework_cache_pages',
>      'tagsTable' => 'cachingframework_cache_pages_tags',
>      'compression' => TRUE,
>    ),
> );

So that's the configuration you used for your site?

> the 'frontend' => 't3lib_cache_frontend_StringFrontend' doesn't work, is 
> defect or unusable

Uhm, no. The StringFrontend is made for storing strings, not variables,
thus no arrays can be stored.

But TYPO3 stores the cached data as an array:

if (TYPO3_UseCachingFramework) {
	$cacheData = array(
...
$this->pageCache->set(
	$this->newHash,
	$cacheData,
...

So yes, you cannot use the StringFrontend for the "standard" TYPO3
caches, but besides that it works perfectly for other cases. :)

Regards Helmut


More information about the TYPO3-project-v4 mailing list