resetBannedHostPages(time() - CLEAN_HOST_PAGE_BAN_SECONDS_OFFSET); // Reset banned pages $hostPagesBansRemoved = $db->resetBannedHosts(time() - CLEAN_HOST_BAN_SECONDS_OFFSET); // Optimize tables if (CLEAN_DB_TABLES_OPTIMIZATION) { try { $db->optimize(); } catch (Exception $e) { var_dump($e); } } // Debug echo 'Host bans removed: ' . $hostsBansRemoved . PHP_EOL; echo 'Host page bans removed: ' . $hostPagesBansRemoved . PHP_EOL; echo 'Total time: ' . microtime(true) - $timeStart . PHP_EOL . PHP_EOL;