bans.php: make the purge configurable

This commit is contained in:
Zankaria 2024-06-30 17:01:53 +02:00
parent bcfc934604
commit d0b1c388eb
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());