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