[TASK] Add current backend user as cache tag
authorOliver Hader <oliver@typo3.org>
Sun, 12 Aug 2012 14:50:03 +0000 (16:50 +0200)
committerOliver Hader <oliver.hader@typo3.org>
Mon, 13 Aug 2012 21:27:29 +0000 (23:27 +0200)
Adds the current backend user as cache tag.

Change-Id: Ibd0e3d1fcd1985dd8fd236d84d327f2108b80ba6
Resolves: #39732
Related: #39731
Releases: 6.0
Reviewed-on: http://review.typo3.org/13615
Reviewed-by: Wouter Wolters
Reviewed-by: Oliver Hader
Tested-by: Oliver Hader
typo3/sysext/workspaces/Classes/Service/GridData.php

index 683b00d..a63b48b 100644 (file)
@@ -252,7 +252,11 @@ class Tx_Workspaces_Service_GridData {
         */
        protected function setDataArrayIntoCache(array $versions, $filterTxt) {
                $hash = $this->calculateHash($versions, $filterTxt);
-               $this->workspacesCache->set($hash, $this->dataArray, array($this->currentWorkspace));
+               $this->workspacesCache->set(
+                       $hash,
+                       $this->dataArray,
+                       array($this->currentWorkspace, 'user_' . $GLOBALS['BE_USER']->user['uid'])
+               );
        }
 
        /**