MDL-35339 Better cache reset for get_fast_modinfo(), allow exec get_fast_modinfo($courseid)

This commit is contained in:
Marina Glancy
2012-10-15 14:08:15 +08:00
parent 38b19bbca1
commit b46be6adf4
8 changed files with 72 additions and 73 deletions
+1 -2
View File
@@ -640,8 +640,7 @@ class phpunit_util {
// If file containing class is not loaded, there is no cache there anyway.
format_base::reset_course_cache(0);
}
$reset = 'reset';
get_fast_modinfo($reset);
get_fast_modinfo(0, 0, true);
// purge dataroot directory
self::reset_dataroot();