Skip to content

Commit 0ef5bc0

Browse files
author
David Monllao
committed
Merge branch 'MDL-62868-35' of https://github.com/snake/moodle into MOODLE_35_STABLE
2 parents 8632026 + fb6ae10 commit 0ef5bc0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

group/assign.php

+5
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,18 @@
5959
// Invalidate the course groups cache seeing as we've changed it.
6060
cache_helper::invalidate_by_definition('core', 'groupdata', array(), array($courseid));
6161

62+
// Invalidate the user_group_groupings cache, too.
63+
cache_helper::purge_by_definition('core', 'user_group_groupings');
6264
} else if (isset($frm->remove) and !empty($frm->removeselect)) {
6365
foreach ($frm->removeselect as $groupid) {
6466
// Ask this method not to purge the cache, we'll do it ourselves afterwards.
6567
groups_unassign_grouping($grouping->id, (int)$groupid, false);
6668
}
6769
// Invalidate the course groups cache seeing as we've changed it.
6870
cache_helper::invalidate_by_definition('core', 'groupdata', array(), array($courseid));
71+
72+
// Invalidate the user_group_groupings cache, too.
73+
cache_helper::purge_by_definition('core', 'user_group_groupings');
6974
}
7075
}
7176

0 commit comments

Comments
 (0)