Project

General

Profile

Bug #34117 ยป 34117_v1.patch

Andreas Kiessling, 2012-02-20 18:09

View differences:

Classes/Service/GridData.php
protected function setDataArrayIntoCache (array $versions, $filterTxt) {
if (TYPO3_UseCachingFramework === TRUE) {
$hash = $this->calculateHash($versions, $filterTxt);
$content = serialize($this->dataArray);
$this->workspacesCache->set($hash, $content, array($this->currentWorkspace));
$this->workspacesCache->set($hash, $this->dataArray, array($this->currentWorkspace));
}
}
......
$content = $this->workspacesCache->get($hash);
if ($content != FALSE) {
$this->dataArray = unserialize($content);
$this->dataArray = $content;
$cacheEntry = TRUE;
}
}
Classes/Service/Tcemain.php
try {
$GLOBALS['typo3CacheFactory']->create(
'workspaces_cache',
't3lib_cache_frontend_StringFrontend',
$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['sys_workspace_cache']['frontend'],
$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['sys_workspace_cache']['backend'],
$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['sys_workspace_cache']['options']);
} catch (t3lib_cache_exception_DuplicateIdentifier $e) {
    (1-1/1)