bans.php: make the purge configurable

This commit is contained in:
Zankaria
2024-06-30 17:01:53 +02:00
committed by Zankaria
parent 75714505a0
commit cbaf19cb7a
2 changed files with 15 additions and 4 deletions

View File

@@ -907,7 +907,7 @@ function checkBan($board = false) {
return;
}
Bans::purge();
Bans::purge($config['require_ban_view']);
if ($config['cache']['enabled'])
cache::set('purged_bans_last', time());