maintenance.php: add purging antispam to the tool

This commit is contained in:
Zankaria 2024-07-08 23:59:17 +02:00
parent 7613eda52b
commit cc1b59127d

View file

@ -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");