Project

General

Profile

Actions

Bug #101663

closed

Cache-Tags are not/set restored on snippet caches

Added by Sascha Nowak over 1 year ago. Updated 4 months ago.

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

100%

Estimated time:
TYPO3 Version:
11
PHP Version:
7.4
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Given you have a TypoScript with a cache configured:

lib.header = FLUIDTEMPLATE
lib.header {
    cache {
        key = site-header
        tags = pages
        lifetime = 15552000
    }

    file = EXT:example/Resources/Private/Templates/PageSections/Header.html

    dataProcessing {
        10 = TYPO3\CMS\Frontend\DataProcessing\MenuProcessor
        10 {
            levels = 2
            includeSpacer = 1
            as = mainnavigation
        }
    }
}

The first time this snippet is rendered, the cache tags are not added to the page. When the TypoScript is not rendered and fetched from Database, the Cache-Tags are not available and also not added to the page.
There was a change https://review.typo3.org/c/Packages/TYPO3.CMS/+/63768 a view years ago, which fixes that for the page cache, but this feature is currently not available for the hash cache.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #90775: $GLOBALS['TSFE'] does not contain 'pageCacheTags' if page was cached beforeClosed2020-03-18

Actions
Actions #1

Updated by Sascha Nowak over 1 year ago

  • Subject changed from Cache-Tags are not restored on snippet caches to Cache-Tags are not/set restored on snippet caches
Actions #2

Updated by Gerrit Code Review over 1 year ago

  • Status changed from New to Under Review

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

Actions #3

Updated by Sascha Nowak over 1 year ago

  • Description updated (diff)
Actions #4

Updated by Gerrit Code Review over 1 year ago

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

Actions #5

Updated by Gerrit Code Review over 1 year ago

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

Actions #6

Updated by Christian Kuhn over 1 year ago

  • Related to Bug #90775: $GLOBALS['TSFE'] does not contain 'pageCacheTags' if page was cached before added
Actions #7

Updated by Gerrit Code Review about 1 year ago

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

Actions #8

Updated by Gerrit Code Review about 1 year ago

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

Actions #9

Updated by Gerrit Code Review about 1 year ago

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

Actions #10

Updated by Gerrit Code Review about 1 year ago

Patch set 1 for branch 12.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/+/81806

Actions #11

Updated by Gerrit Code Review about 1 year ago

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

Actions #12

Updated by Sascha Nowak about 1 year ago

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

Updated by Benni Mack 4 months ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF