Issue Bug Closed

#91693cache timeout calculation with custom starttime / endtime fields not working

Alexander Vogt 06/23/20, 10:24 updated 12/02/25, 14:36

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.

Reviews 3

History 47

  1. Sybille Peters changed Related to #90406 08/06/20, 15:05

  2. Sybille Peters changed Related to #90406 08/06/20, 16:25

  3. Gerrit Code Review pushed patch set 1 for main to change 86847 status New Under Review 10/31/24, 14:31

  4. Gerrit Code Review pushed patch set 1 for 13.4 to change 86863 11/04/24, 09:40

  5. Gerrit Code Review pushed patch set 1 for 12.4 to change 86864 11/04/24, 09:40

  6. Anonymous commented and changed status Under Review Resolved done 0 % 100 % 11/04/24, 09:50

    Applied in changeset commit:25441fca2593cb8b13df9311f18cb69ea6d219ae.

  7. Benni Mack changed status Resolved Closed 12/02/25, 14:36