profiling: add times around dnsbl and ban checks

This commit is contained in:
towards-a-new-leftypol 2025-01-01 21:48:54 -05:00
parent cb33251f7c
commit 36cbf4e6e5
1 changed files with 4 additions and 0 deletions

View File

@ -554,10 +554,14 @@ function handle_post(){
error($config['error']['referer']);
}
$time_dnsbl = microtime(true);
checkDNSBL();
$debug['time']['post']['dnsbl'] = round((microtime(true) - $time_dnsbl) * 1000, 2) . 'ms';
$time_ban = microtime(true);
// Check if banned
checkBan($board['uri']);
$debug['time']['post']['check_ban'] = round((microtime(true) - $time_ban) * 1000, 2) . 'ms';
if ($post['mod'] = isset($_POST['mod']) && $_POST['mod']) {
check_login(false);