Skip to content

Commit

Permalink
MDL-76936 course: purge course cache on resetting start date
Browse files Browse the repository at this point in the history
  • Loading branch information
HirotoKagotani committed Jan 19, 2023
1 parent 4b69c11 commit 5fa1ec0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/moodlelib.php
Original file line number Diff line number Diff line change
Expand Up @@ -5697,6 +5697,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.
Expand Down

0 comments on commit 5fa1ec0

Please sign in to comment.