Project

General

Profile

Actions

Bug #95600

closed

Cache clear after publishing from workspace doesn't work

Added by Hannes Bochmann about 3 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Workspaces
Target version:
-
Start date:
2021-10-12
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
10
PHP Version:
7.4
Tags:
workspace cache
Complexity:
Is Regression:
Sprint Focus:

Description

When a record from a workspace is published, the FE cache is not cleared at all. This worked in previous TYPO3 versions. For example if a tt_content record is published the cache of the page needs to be cleared. Problem is as follows.

In TYPO3\CMS\Workspaces\Hook\DataHandlerHook::version_swap() the record which is published is registered for cache clearing with $dataHandler->registerRecordIdForPageCacheClearing($table, $id);

The DataHandler retrieves all neccessary cache tags and clear cache commands with the prepareCacheFlush() method. But this method does nothing if the user is currently in a workspace other than the live woorkspace. In previous versions there was no check for the workspace.

Actions

Also available in: Atom PDF