bans.php: make the purge configurable

This commit is contained in:
Zankaria authored and Zankaria committed 2024-08-11 12:04:12 +02:00
1 parent 75714505a0
commit cbaf19cb7a
2 files changed
+15 -4

No files matched your search

+1 -1
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());