Project

General

Profile

Actions

Bug #51031

closed

Not appropriate check for data type in Redis caching backend

Added by Viktor Livakivskyi over 10 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Caching
Target version:
-
Start date:
2013-08-12
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
6.0
PHP Version:
5.4
Tags:
Complexity:
medium
Is Regression:
Sprint Focus:

Description

I've started using Redis as caching backend for all caches, that are using db. So far so good, but now I'm experiencing issues with workspaces caches.
Whenever I do some change, that involves processCmdmap_afterFinish() hook (i.e. mark BE user as "admin"), I'me getting an exception:

#1279578078: The specified tag is of type "integer" but a string is expected. 

The stacktrace is following:
6 TYPO3\CMS\Core\Cache\Backend\RedisBackend::flushByTag(0)
5 TYPO3\CMS\Core\Cache\Frontend\AbstractFrontend::flushByTag(0)
4 TYPO3\CMS\Workspaces\Hook\DataHandlerHook::flushWorkspaceCacheEntriesByWorkspaceId(0)
3 TYPO3\CMS\Workspaces\Hook\DataHandlerHook::processCmdmap_afterFinish(TYPO3\CMS\Core\DataHandling\DataHandler)
2 TYPO3\CMS\Core\DataHandling\DataHandler::process_cmdmap()
1 TYPO3\CMS\Backend\Controller\EditDocumentController::processData()

So, the problem is in fact, that LIVE workspace has id=0, and this is incorrect tag name for Redis.

Actions

Also available in: Atom PDF