From f1f3101b4e648027ddb189234fa6f5ebef250046 Mon Sep 17 00:00:00 2001 From: Tim Hunt Date: Mon, 5 Aug 2019 17:11:56 +0100 Subject: [PATCH] MDL-66328 groups: overview page can require lots of memory --- group/overview.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/group/overview.php b/group/overview.php index de91486b3ce45..785cc6356ff51 100644 --- a/group/overview.php +++ b/group/overview.php @@ -69,6 +69,10 @@ $strnogroup = get_string('nogroup', 'group'); $strnogrouping = get_string('nogrouping', 'group'); +// This can show all users and all groups in a course. +// This is lots of data so allow this script more resources. +raise_memory_limit(MEMORY_EXTRA); + // Get all groupings and sort them by formatted name. $groupings = $DB->get_records('groupings', array('courseid'=>$courseid), 'name'); foreach ($groupings as $gid => $grouping) {