From acd6b5f4a993546b6cf615f5c69995532bf67161 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Mon, 30 Apr 2018 14:33:41 -0400 Subject: [PATCH] limit the # of log lines deleted to 100 to limit the time spent there. --- web/skins/classic/includes/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/skins/classic/includes/functions.php b/web/skins/classic/includes/functions.php index b814e9a13..e1808410a 100644 --- a/web/skins/classic/includes/functions.php +++ b/web/skins/classic/includes/functions.php @@ -244,7 +244,7 @@ function getNavBarHTML($reload = null) { if ( logToDatabase() > Logger::NOLOG ) { if ( ! ZM_RUN_AUDIT ) { # zmaudit can clean the logs, but if we aren't running it, then we should clecan them regularly - dbQuery('DELETE FROM Logs WHERE TimeKey < unix_timestamp( NOW() - interval '.ZM_LOG_DATABASE_LIMIT.')'); + dbQuery('DELETE FROM Logs WHERE TimeKey < unix_timestamp( NOW() - interval '.ZM_LOG_DATABASE_LIMIT.') LIMIT 100'); } echo makePopupLink( '?view=log', 'zmLog', 'log', ''.translate('Log').'' ); }