clean(); foreach ($bb_cfg['cache']['engines'] as $cache_name => $cache_val) { CACHE($cache_name)->rm(); } // Drop tables & Insert sql dump $temp_line = ''; foreach (file($dump_path) as $line) { if (str_starts_with($line, '--') || $line == '') { continue; } $temp_line .= $line; if (str_ends_with(trim($line), ';')) { if (!DB()->query($temp_line)) { $cron_runtime_log[] = date('Y-m-d H:i:s') . " -- Error performing query: " . $temp_line . " | " . DB()->sql_error()['message']; } $temp_line = ''; } }