mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
9aacf24b62
By holding onto a reference of the global $CFG object we can be sure that it isn't destroyed before we are done with it. This allows for caches to be used within destructors for purposes such as delayed writes.