diff options
| author | Michael Foster <savetheinternet@tinyboard.org> | 2013-08-04 04:48:13 -0400 |
|---|---|---|
| committer | Michael Foster <savetheinternet@tinyboard.org> | 2013-08-04 04:48:13 -0400 |
| commit | 0890557ebb666dacf3356aae262ec79f486fa25d (patch) | |
| tree | 96df8f61d5339418032535bd44a2de14e6c4073d /inc/config.php | |
| parent | fb3b9ea868b7c65e18f8cde5d4d66388d78e5da8 (diff) | |
Don't purge the ban list of expires bans every time somebody posts. Add a timer option. Less SQL queries when posting.
Diffstat (limited to 'inc/config.php')
| -rw-r--r-- | inc/config.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/inc/config.php b/inc/config.php index 06c6c243..bc7711e6 100644 --- a/inc/config.php +++ b/inc/config.php @@ -983,6 +983,10 @@ // persistent spammers and ban evaders. Again, a little more database load. $config['ban_cidr'] = true; + // How often (minimum) to purge the ban list of expired bans (which have been seen). Only works when + // $config['cache'] is enabled and working. + $config['purge_bans'] = 60 * 60 * 12; // 12 hours + // Do DNS lookups on IP addresses to get their hostname for the moderator IP pages (?/IP/x.x.x.x). $config['mod']['dns_lookup'] = true; // How many recent posts, per board, to show in ?/IP/x.x.x.x. |
