[TYPO3-dev] Avoid clearing cache in Draft workspace

Martin Kutschker Martin.Kutschker at n0spam-blackbox.net
Thu Jan 4 09:32:03 CET 2007


John Angel schrieb:
> Hi
> 
> I think that functions clear_cache and clear_cacheCmd in
> t3lib/class.t3lib_tcemain.php shouldn't clear any page cache when 
> working in
> Draft workspace.
> 
> Something like:
> 
> if($GLOBALS['BE_USER']->workspace<0 && empty($_params->cmdmap))
> {
>    // Don't clear the cache
> }
> 
> The other part of IF is necessary to allow clearing the cache when
> committing the changes using Workspace menu.
> 
> Any thoughts?

It should clear the cache only in LIVE ($workspace===0).

OTOH, publishing should clear the cache. Is this done already?

Masi




More information about the TYPO3-dev mailing list