_clearCache(); } /** * @return void * @throws IOException */ private function _clearCache(): void{ $cache_folder = Factory::getWPHelper()->getWordPressHomedir() . Wordpress::WP_CONTENT. JetBackup::SEP . 'cache' . JetBackup::SEP . 'autoptimize'; if (!file_exists($cache_folder)) return; Util::rm($cache_folder, false); } }