My English ability is very poor. I am sorry.
I use moodle mobile app.
I hava performance problem.
When many user use moodle, speed is down.
I have many student and course, so many context and capabilities.
when user use in computer,
accesslib.php get_user_access_sitewide function call 1time or needs it.
but I connect to moodle using app.
get_user_access_sitewide called every times.
get_user_access_sitewide function execute very slow query.
I takes 2~10 seconds.
I want to reduce call get_user_access_sitewide function.
How can I do?