limit the # of log lines deleted to 100 to limit the time spent there.
This commit is contained in:
parent
3bb1a5b544
commit
acd6b5f4a9
|
@ -244,7 +244,7 @@ function getNavBarHTML($reload = null) {
|
||||||
if ( logToDatabase() > Logger::NOLOG ) {
|
if ( logToDatabase() > Logger::NOLOG ) {
|
||||||
if ( ! ZM_RUN_AUDIT ) {
|
if ( ! ZM_RUN_AUDIT ) {
|
||||||
# zmaudit can clean the logs, but if we aren't running it, then we should clecan them regularly
|
# 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', '<span class="'.logState().'">'.translate('Log').'</span>' );
|
echo makePopupLink( '?view=log', 'zmLog', 'log', '<span class="'.logState().'">'.translate('Log').'</span>' );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue