[TYPO3-core] RFC: #11271: Use 2 level cache for BEgetRootLine

Steffen Kamper info at sk-typo3.de
Tue Jun 9 09:35:27 CEST 2009


Hi Masi,

Martin Kutschker schrieb:
> Better, but now TCEmain has to know about a private cache of BEfunc. The
> cache handler fucntion in TCEmain is fine, but it either needs a hook
> API or another way (observers?) for external caches to get flushed.
> 

alright. i made the function public and allow static call which has a 
positive side effect as you easy can flush a page cache from outside

flushing the rootline only:
t3lib_TCEmain::cacheHandler('pages', 0, 'language');

flushing a specific page from cache:
t3lib_TCEmain::cacheHandler('pages', 112, 'update');

hope that fits the needs.

vg Steffen


More information about the TYPO3-team-core mailing list