public function executeCoreClearCache($arguments, $options) { $path = realpath(sgContext::getInstance()->getRootDir() . '/cache/'); if (!$path) { $targetDir = realpath($_SERVER['PWD']); sgToolkit::mkdir($targetDir . '/cache', 0777); } else { $files = sgToolkit::getFiles($path); sgToolkit::remove($files); } }