Fixed bug #10439: Data array used in ws-grid should be cached
authormbresch <mbresch@743128fe-103e-dd11-99c4-001b210b3e58>
Tue, 18 Jan 2011 14:17:55 +0000 (14:17 +0000)
committermbresch <mbresch@743128fe-103e-dd11-99c4-001b210b3e58>
Tue, 18 Jan 2011 14:17:55 +0000 (14:17 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/CoreProjects/workspaces/workspaces/trunk@3864 743128fe-103e-dd11-99c4-001b210b3e58

typo3/sysext/workspaces/Classes/Service/GridData.php
typo3/sysext/workspaces/Classes/Service/Tcemain.php

index 6415226..3e35a92 100644 (file)
@@ -175,7 +175,7 @@ class tx_Workspaces_Service_GridData {
         * @return void
         */
        protected function initializeWorkspacesCachingFramework() {
-               if (TYPO3_UseCachingFramework) {
+               if (TYPO3_UseCachingFramework === TRUE) {
                        try {
                                $GLOBALS['typo3CacheFactory']->create(
                                        'workspaces_cache',
@@ -198,7 +198,7 @@ class tx_Workspaces_Service_GridData {
         * @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);
                        
@@ -216,7 +216,7 @@ class tx_Workspaces_Service_GridData {
        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);
index b21376c..947f1ca 100644 (file)
@@ -149,7 +149,7 @@ class tx_Workspaces_Service_Tcemain {
         * @return void
         */
        protected function flushWorkspaceCacheEntriesByWorkspaceId($workspaceId) {
-               if (TYPO3_UseCachingFramework) {
+               if (TYPO3_UseCachingFramework === TRUE) {
                        try {
                                $GLOBALS['typo3CacheFactory']->create(
                                        'workspaces_cache',