[AMOS commit] MDL-60188 groups: cache user's groups and groupings Committed into Git: 2017-11-23 15:15 UTC

[AMOS commit] MDL-60188 groups: cache user's groups and groupings Committed into Git: 2017-11-23 15:15 UTC

by AMOS bot -
Number of replies: 0
Author: Shamim Rezaie
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.


http://git.moodle.org/gw?p=moodle.git;a=commit;h=0897d6588e925348a7654e1daa391910c7c584a5
http://github.com/moodle/moodle/commit/0897d6588e925348a7654e1daa391910c7c584a5

+ 3.5 en [cachedef_user_group_groupings,core_cache]