Registry::clearCacheHook()
\nn\t3::Registry()->clearCacheHook($classMethodPath = '');
Fügt einen Hook ein, der beim Klick auf "Cache löschen" ausgeführt wird.
Folgendes Script kommt in die ext_localconf.php der eigenen Extension:
\nn\t3::Registry()->clearCacheHook( \My\Ext\Path::class . '->myMethod' );
Copied!
| @return void
Source Code
public function clearCacheHook( $classMethodPath = '' )
{
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['clearCachePostProc'][] = $classMethodPath;
}
Copied!