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:
Paul Holden 2021-10-06 17:28:35 +01:00 committed by David Matamoros
parent 42481d5c43
commit 0188af39a1
2 changed files with 30 additions and 7 deletions

View file

@ -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')) {