[TYPO3-english] Clear cache in backend module of an extension (TYPO3 4.5)

Hauke Hain newgrp at googlemail.com
Mon Oct 17 13:14:52 CEST 2011


Thank you very much, Jigal!

"Jigal van Hemert" <jigal at xs4all.nl> schrieb im Newsbeitrag 
news:mailman.1.1318787929.17458.typo3-english at lists.typo3.org...
> Hi,
>
> On 16-10-2011 16:41, Hauke Hain wrote:
>> in TYPO3 <4.5 I used the following function to clear the cache of
>> specific pages:
>> function clearPageCache($pid) {
>> $TCE = t3lib_div::makeInstance('t3lib_TCEmain');
>
> $TCE->start(array(), array());
>
>> $TCE->clear_cacheCmd($pid);
>> }
>>
>> This does not work with TYPO3 4.5.
>
> Because clearing cache is now logged it needs a BE user. With the start 
> method you initialize this BE user with the global BE user.
>
> -- 
> Kind regards / met vriendelijke groet,
>
> Jigal van Hemert. 



More information about the TYPO3-english mailing list