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

Jigal van Hemert jigal at xs4all.nl
Sun Oct 16 19:58:47 CEST 2011


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