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 #1

Updated by Hannes Bochmann about 3 years ago

  • Description updated (diff)
Actions #2

Updated by Gerrit Code Review about 3 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/71799

Actions #3

Updated by Gerrit Code Review about 3 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/71799

Actions #4

Updated by Gerrit Code Review about 3 years ago

Patch set 1 for branch 10.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/71920

Actions #5

Updated by Benjamin Franzke about 3 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #6

Updated by Benni Mack about 2 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF