From 9aa4a14744cafecf96f251f7524a3799e0d54adf Mon Sep 17 00:00:00 2001 From: Eric Merrill Date: Thu, 9 Jul 2015 12:27:32 -0400 Subject: [PATCH] MDL-50806 questions: Allow more memory when doing a question import --- question/format.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/question/format.php b/question/format.php index 197ecf6d3e2..2f3744f5e47 100644 --- a/question/format.php +++ b/question/format.php @@ -289,8 +289,9 @@ class qformat_default { public function importprocess($category) { global $USER, $CFG, $DB, $OUTPUT; - // reset the timer in case file upload was slow + // Raise time and memory, as importing can be quite intensive. core_php_time_limit::raise(); + raise_memory_limit(MEMORY_EXTRA); // STAGE 1: Parse the file echo $OUTPUT->notification(get_string('parsingquestions', 'question'), 'notifysuccess');