Issue Bug Closed

#106830clearCachePostProc hook does not allow to change cache tags

Benni Mack 06/05/25, 06:58 updated 08/12/25, 14:35

Description

DataHandler hook is basically useless in order to modify the cache tags due to a typo.

$_params = [‘table’ => $table, ‘uid’ => $uid, ‘uid_page’ => $pageUid, ‘TSConfig’ => $TSConfig, ‘tags’ => $tagsToClear, ‘clearCacheEnabled’ => $clearCacheEnabled];
foreach ($GLOBALS[‘TYPO3_CONF_VARS’][‘SC_OPTIONS’][‘t3lib/class.t3lib_tcemain.php’][‘clearCachePostProc’] ?? [] as $_funcRef) {
GeneralUtility::callUserFunction($_funcRef, $_params, $this);
}

The tags cannot be changed, for this reason, consumers always trigger a flushByTagInGroup themselves, making tooo much overhead.

Reviews 2

History 24

  1. Gerrit Code Review pushed patch set 1 for main to change 89637 status New Under Review 06/05/25, 07:04

  2. Gerrit Code Review pushed patch set 1 for 13.4 to change 89640 06/05/25, 09:09

  3. Benni Mack commented and changed status Under Review Resolved done 0 % 100 % 06/05/25, 09:15

    Applied in changeset commit:0da7624b791fab61cf5b484b6b68153fa3808460.

  4. Benni Mack changed status Resolved Closed 08/12/25, 14:35