/** * Clean cache */ public static function cleanCache() { if (ARTICHOW_CACHE) { $glob = glob(ARTICHOW_CACHE_DIRECTORY . "/*-time"); foreach ($glob as $file) { $type = awGraph::cleanGraphCache($file); if ($type === NULL) { $name = ereg_replace(".*/(.*)\\-time", "\\1", $file); awGraph::deleteFromCache($name); } } } }
/** * Clean cache */ function cleanCache() { $glob = glob(ARTICHOW . "/cache/*-time"); foreach ($glob as $file) { $type = awGraph::cleanGraphCache($file); if ($type === NULL) { $name = ereg_replace(".*/(.*)\\-time", "\\1", $file); awGraph::deleteFromCache($name); } } }