clear cache Hook not executed with Admin Tools -> Maintenance -> Flush Cache
When using the following hook:
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['clearCachePostProc'] = \Vendor\Package\Hook\DataHandlerHook::class . '->postProcessClearCache';
It is being executed when I use the Clear Cache Option in the top right corner of the backend.
However, it is not being executed via Admin Tools -> Maintenance -> Flush Cache
Tested in TYPO3 10.4.21