Project

General

Profile

Feature #10439 » 10439v4.patch

Marco Bresch, 2011-01-18 15:22

View differences:

Classes/Service/GridData.php (working copy)
* @return void
*/
protected function initializeWorkspacesCachingFramework() {
if (TYPO3_UseCachingFramework) {
if (TYPO3_UseCachingFramework === TRUE) {
try {
$GLOBALS['typo3CacheFactory']->create(
'workspaces_cache',
......
* @param string $filterTxt The given filter text from the grid.
*/
protected function setDataArrayIntoCache (array $versions, $filterTxt) {
if (TYPO3_UseCachingFramework) {
if (TYPO3_UseCachingFramework === TRUE) {
$hash = $this->calculateHash($versions, $filterTxt);
$content = serialize($this->dataArray);
......
protected function getDataArrayFromCache (array $versions, $filterTxt) {
$cacheEntry = FALSE;
if (TYPO3_UseCachingFramework) {
if (TYPO3_UseCachingFramework === TRUE) {
$hash = $this->calculateHash($versions, $filterTxt);
$content = $this->workspacesCache->get($hash);
Classes/Service/Tcemain.php (working copy)
* @return void
*/
protected function flushWorkspaceCacheEntriesByWorkspaceId($workspaceId) {
if (TYPO3_UseCachingFramework) {
if (TYPO3_UseCachingFramework === TRUE) {
try {
$GLOBALS['typo3CacheFactory']->create(
'workspaces_cache',
(4-4/4)