From c9c2feb8bf901d0dbb2100a0f04f72b5568cdb38 Mon Sep 17 00:00:00 2001 From: Dan Marsden Date: Tue, 29 Jun 2021 20:43:07 +1200 Subject: [PATCH] Allow export to use more memory and more time. --- export.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/export.php b/export.php index 458dbc7..b5d645c 100644 --- a/export.php +++ b/export.php @@ -54,6 +54,9 @@ $formparams = array('course' => $course, 'cm' => $cm, 'modcontext' => $context); $mform = new mod_attendance\form\export($att->url_export(), $formparams); if ($formdata = $mform->get_data()) { + // Exporting large courses may use a bit of memory/take a bit of time. + \core_php_time_limit::raise(); + raise_memory_limit(MEMORY_HUGE); $pageparams = new mod_attendance_page_with_filter_controls(); $pageparams->init($cm);