[TYPO3-dev] Define own files to delete on `clear FE-cache`-action

Dmitry Dulepov 9f4eetb02 at sneakemail.com
Thu May 24 09:30:12 CEST 2007


Sebastian Roth wrote:
> 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?

You can add tables but not files. If you really want to remove files, 
you will need either to XCLASS tcemain and override clear_cacheCmd() 
function or request a hook to this function.

XCLASS will work with any live typo3 version but it may conflict with 
other XCLASSes. Hook will work fine together with other hooks but it 
will appear officially only in 4.2.

-- 
Dmitry Dulepov

Web: http://typo3bloke.net/
Skype: callto:liels_bugs

"It is our choices, that show what we truly are,
far more than our abilities." (A.P.W.B.D.)




More information about the TYPO3-dev mailing list