Merge branch 'MOODLE_37_MDL-67746' of https://github.com/golenkovm/moodle into MOODLE_37_STABLE
This commit is contained in:
@@ -163,6 +163,9 @@ class database_logger implements task_logger {
|
||||
return;
|
||||
}
|
||||
|
||||
$DB->delete_records_list('task_log', 'id', $logids);
|
||||
$chunks = array_chunk($logids, 1000);
|
||||
foreach ($chunks as $chunk) {
|
||||
$DB->delete_records_list('task_log', 'id', $chunk);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user