protected function _clearCache() { if (!file_exists(PATH_CACHE)) { mkdir(PATH_CACHE); } foreach (new DirectoryIterator(PATH_CACHE) as $item) { if ($item->isDir()) { continue; } unlink($item->getPathname()); } }