pages.php: gzip buffering of json ban stream was causing excessive latency

This commit is contained in:
Zankaria 2025-07-23 21:19:35 +02:00
parent cbbc267b65
commit f6b74cb282

View file

@ -1189,9 +1189,6 @@ function mod_bans_json(Context $ctx) {
if (!hasPermission($config['mod']['ban']))
error($config['error']['noaccess']);
// Compress the json for faster loads
if (substr_count($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip')) ob_start("ob_gzhandler");
Bans::stream_json(false, !hasPermission($config['mod']['view_banstaff']), $mod['boards']);
}