private function trunc_folder($folder, $touch = false) { $this->loadCore(); cleanFolder($folder, $touch); }
private function trunc_folder($folder, $touch = false) { cleanFolder($folder, $touch); }
function cleanNitroCacheFolders($touch = false, $time = false) { cleanFolder(NITRO_PAGECACHE_FOLDER, $touch, $time); cleanFolder(NITRO_DBCACHE_FOLDER, $touch, $time); cleanFolder(NITRO_FOLDER . 'temp' . DS, $touch, $time); cleanFolder(dirname(DIR_APPLICATION) . DS . 'assets' . DS . 'css' . DS, $touch, $time); cleanFolder(dirname(DIR_APPLICATION) . DS . 'assets' . DS . 'js' . DS, $touch, $time); if (class_exists('Journal2Cache')) { Journal2Cache::deleteCache(); } $db = NitroDb::getInstance(); $db->query("TRUNCATE TABLE " . DB_PREFIX . "nitro_product_cache"); }