This is a test site. Any changes will be lost!

Application/session variables

From MoodleDocs

This page is intended to discuss about ideas and improvements about the optimization of some "global" variables inside Moodle. Currently, practically everything is stored and refreshed at "request" time, ie. for each Moodle "page", everything is retrieved from DB always. As Moodle DB is growing continuously, a lot of DB accesses are performed and memory requirements are increasing a lot (the same common data is duplicated for each session or request. This isn't really efficient and we should think about how to "move" some variables to other contexts (session and application levels) and possible implementations and caveats for this.

For each of that categories we should decide what variables fit inside, their refreshing techniques, store schema...