Project

General

Profile

Actions

Bug #91693

open

cache timeout calculation with custom starttime / endtime fields not working

Added by Alexander Vogt almost 4 years ago.

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

0%

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 3 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 3 years ago

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

Also available in: Atom PDF