[TYPO3-dev] using TCEMAIN clear_cacheCmd in frontend in 4.5 trunk

Steffen Kamper info at sk-typo3.de
Sat Dec 25 22:13:39 CET 2010


Hi,

i investigated this issue, and it's nonsense to call tcemain from FE as 
this is not intended to do so.

Clearing cache in FE is possible as it's built in. The only senseful is 
clearing page cache, configuration cache or rte cache is not allowed 
from FE context.

To clear cahce in FE there are two functions available:

$GLOBALS['TSFE']->clearPageCacheContent() <= clears all page cache
$GLOBALS['TSFE']->clearPageCacheContent_pidList($pidList) <= clears 
cache of pages for given uid's

So this is all what is needed for FE. For own cache using cache 
framework there are the built in functions from cache framework.

(this is a copy from my post in core list)

vg Steffen




More information about the TYPO3-dev mailing list