MDL-60188 groups: cache user's groups and groupings

The function groups_get_user_groups is called too often both before rendering the page and after the page is rendered (using ajax).
The function was executing a query joining 3 tables in each call. The plementation of the function has now modified to store the
query result in a request cache.
This commit is contained in:
Shamim Rezaie
2017-11-27 10:39:15 +08:00
parent c099963697
commit 4d7d71fb37
6 changed files with 81 additions and 32 deletions
+1 -1
View File
@@ -29,7 +29,7 @@
defined('MOODLE_INTERNAL') || die();
$version = 2017051503.03; // 20170515 = branching date YYYYMMDD - do not modify!
$version = 2017051503.04; // 20170515 = branching date YYYYMMDD - do not modify!
// RR = release increments - 00 in DEV branches.
// .XX = incremental changes.