MDL-35339 Better cache reset for get_fast_modinfo(), allow exec get_fast_modinfo($courseid)
This commit is contained in:
@@ -971,8 +971,8 @@ class completion_info {
|
||||
|
||||
if ($data->userid == $USER->id) {
|
||||
$SESSION->completioncache[$cm->course][$cm->id] = $data;
|
||||
$reset = 'reset';
|
||||
get_fast_modinfo($reset);
|
||||
// reset modinfo for user (no need to call rebuild_course_cache())
|
||||
get_fast_modinfo($cm->course, 0, true);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user