Project

General

Profile

Actions

Bug #91693

closed

cache timeout calculation with custom starttime / endtime fields not working

Added by Alexander Vogt over 4 years ago. Updated 17 days ago.

Status:
Resolved
Priority:
Should have
Assignee:
-
Category:
Caching
Target version:
-
Start date:
2020-06-23
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
9
PHP Version:
7.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

The following configuration does not work when using fieldnames other than "starttime" or "endtime":

config.cache.all = tx_demo_domain_model_slideshowitem:14

My TCA configuration looks like this:

  return [
    'columns'=>[
      'visible_to' => [/*...*/],
      'visible_from' => [/*...*/],
      /*...*/
    ],
    'ctrl' => [
      'enablecolumns'=>[
        'endtime'=>'visible_to',
        'starttime'=>'visible_from'
      ],
      /*...*/
    ],
    /*...*/
  ];

https://github.com/TYPO3/TYPO3.CMS/blob/9.5/typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php#L4865
$timeField is always "starttime" or "endtime". But in my case the fieldnames are "visible_to", "visible_from" ($_).

Tested with TYPO3 9. But it looks like this is a issue of alle TYPO3 versions.

Actions #1

Updated by Sybille Peters over 4 years ago

  • Related to Bug #90406: Caching of pages is not adjusted for content with "Publish Date" / "Expiration Date" (starttime, endtime) added
Actions #2

Updated by Sybille Peters over 4 years ago

  • Related to deleted (Bug #90406: Caching of pages is not adjusted for content with "Publish Date" / "Expiration Date" (starttime, endtime))
Actions #3

Updated by Gerrit Code Review 21 days 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/+/86847

Actions #4

Updated by Gerrit Code Review 17 days ago

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

Actions #5

Updated by Gerrit Code Review 17 days 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/+/86864

Actions #6

Updated by Anonymous 17 days ago

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

Also available in: Atom PDF