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:
+1
-1
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user