From cc1b59127d031429a2e0d8b71fba0af0a93e51fa Mon Sep 17 00:00:00 2001 From: Zankaria Date: Mon, 8 Jul 2024 23:59:17 +0200 Subject: [PATCH] maintenance.php: add purging antispam to the tool --- tools/maintenance.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tools/maintenance.php b/tools/maintenance.php index 14de7a94..cdc1089d 100644 --- a/tools/maintenance.php +++ b/tools/maintenance.php @@ -10,4 +10,11 @@ $start = microtime(true); $deleted_count = Bans::purge($config['require_ban_view']); $delta = microtime(true) - $start; echo "Deleted $deleted_count expired bans in $delta seconds!"; -modLog('Deleted expired bans using tools/maintenance.php'); +modLog("Deleted expired bans in {$delta}s with tools/maintenance.php"); + +echo "Clearing old antispam..."; +$start = microtime(true); +$deleted_count = purge_old_antispam(); +$delta = microtime(true) - $start; +echo "Deleted $deleted_count expired antispam in $delta seconds!"; +modLog("Deleted expired antispam in {$delta}s with tools/maintenance.php");