Merge branch 'MDL-76936-400' of https://github.com/HirotoKagotani/moodle into MOODLE_400_STABLE

This commit is contained in:
Sara Arjona
2023-06-06 11:22:21 +02:00
+4
View File
@@ -5675,6 +5675,10 @@ function reset_course_userdata($data) {
// Update calendar events for all modules.
course_module_bulk_update_calendar_events($modname, $data->courseid);
}
// Purge the course cache after resetting course start date. MDL-76936
if ($data->timeshift) {
course_modinfo::purge_course_cache($data->courseid);
}
}
// Mention unsupported mods.