Quote from: OpenGeek at Dec 05, 2006, 01:47 PM
That’s right, clearCache only removes documents that are cached and does not affect the siteCache. This is what the synccache Class is for.
In the clear_cache() function that I use
function clear_cache()
{
global $modx;
include_once($modx->config('base_url') . "manager/processors/cache_sync.class.processor.php");
$sync = new synccache();
$sync->setCachepath($modx->config('base_url') . "assets/cache/");
$sync->setReport(false);
$sync->emptyCache();
$modx->clearCache(); // double clear cache
}
synccache() is used. That’s why I can’t figure out what else can go wrong.