mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 09:26:35 +02:00
MDL-72588 reportbuilder: performance improvement to report loader.
Statically cache list of loaded reports during request lifecycle, this ensures that computationally heavy initialisation routines in system reports are only executed once (e.g. the access tab).
This commit is contained in:
parent
42481d5c43
commit
0188af39a1
2 changed files with 30 additions and 7 deletions
|
@ -255,6 +255,9 @@ class phpunit_util extends testing_util {
|
|||
if (class_exists('\core_course\customfield\course_handler')) {
|
||||
\core_course\customfield\course_handler::reset_caches();
|
||||
}
|
||||
if (class_exists('\core_reportbuilder\manager')) {
|
||||
\core_reportbuilder\manager::reset_caches();
|
||||
}
|
||||
|
||||
// Clear static cache within restore.
|
||||
if (class_exists('restore_section_structure_step')) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue