Menu


Clear cache from extension

Sometimes after certain operations in your custom extension you need to clear the cache of TYPO3, you do this easily because TYPO3 has some methods for this. Also you can either clear the full cache or the partial cache (for one page).

Here it is how you can do it:

$GLOBALS['TSFE']->clearPageCacheContent() // this clears the whole cache
$GLOBALS['TSFE']->clearPageCacheContent_pidList($pidList) // this clears the cache for the given page uid's


That's all!




Google Search

 
wiki.lacisoft.com
WWW
2009-2011 (c) Lacisoft.com