Skip to content
Permalink
Browse files
Merge branch 'MDL-62868-master' of https://github.com/snake/moodle
  • Loading branch information
David Monllao authored and andrewnicols committed Jul 19, 2018
2 parents a02f330 + fd6d98c commit 523704d9ec406d2a0cbc51e7eafba131f7018f5d
Showing with 5 additions and 0 deletions.
  1. +5 −0 group/assign.php
@@ -59,13 +59,18 @@
// Invalidate the course groups cache seeing as we've changed it.
cache_helper::invalidate_by_definition('core', 'groupdata', array(), array($courseid));

// Invalidate the user_group_groupings cache, too.
cache_helper::purge_by_definition('core', 'user_group_groupings');
} else if (isset($frm->remove) and !empty($frm->removeselect)) {
foreach ($frm->removeselect as $groupid) {
// Ask this method not to purge the cache, we'll do it ourselves afterwards.
groups_unassign_grouping($grouping->id, (int)$groupid, false);
}
// Invalidate the course groups cache seeing as we've changed it.
cache_helper::invalidate_by_definition('core', 'groupdata', array(), array($courseid));

// Invalidate the user_group_groupings cache, too.
cache_helper::purge_by_definition('core', 'user_group_groupings');
}
}

0 comments on commit 523704d

Please sign in to comment.