[TYPO3-dev] Define own files to delete on `clear FE-cache`-action
Michiel Roos
michiel at netcreators.com
Tue Jun 12 10:55:35 CEST 2007
Sebastian Roth wrote:
> Hi there,
>
> while developing t3 extensions i'm using the smarty template engine.
> Caching with differenct cachekeys is activated and the exts save this
> in typo3temp/tx_<somepath>.
> But how may i add those files (or something like an wildcard) to the
> list of files to be deleted when an user/admin clicks on `Clear
> FE-Cache` in the backend?
>
> Thanks & Greetings,
> Sebastian
Sebastian,
As Martin points out, there are cache clearing hooks:
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['clearCachePostProc'][]
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['clearPageCacheEval'][]
Use debug statements to track when they are called.
You can find example coe here:
https://forge.netcreators.com/typo3xdev/browser/nc_staticfilecache/trunk/class.tx_ncstaticfilecache.php
Kind regards,
Michiel
More information about the TYPO3-dev
mailing list