Issue Bug Closed

#16831Disable clearing the cache in Draft workspace

John Angel 01/05/07, 08:33 updated 11/22/19, 16:01

Description

Functions clear_cache and clear_cacheCmd in t3lib/class.t3lib_tcemain.php shouldn’t clear any page cache when working in Draft workspace. Current implementation clears the cache when working in Draft workspace.

There should be added something like:

if($GLOBALS[‘BE_USER’]->workspace0 && empty($_params->cmdmap))
{
// Don’t clear the cache
}

The other part of IF is necessary to allow clearing the cache when publishing from Draft to Live workspace.

(issue imported from #M4739)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.