Fix course date change not reflected in due dates due to caching
This commit is contained in:
parent
affd1720f8
commit
36c3306c67
1 changed files with 3 additions and 1 deletions
|
@ -1235,7 +1235,9 @@ class studyplanservice extends \external_api
|
||||||
'reset_start_date_old' => $course->startdate,
|
'reset_start_date_old' => $course->startdate,
|
||||||
'reset_end_date_old' => $course->enddate,
|
'reset_end_date_old' => $course->enddate,
|
||||||
]);
|
]);
|
||||||
|
// purge course cache so the dates are properly reflected
|
||||||
|
\course_modinfo::purge_course_cache($course->id);
|
||||||
|
|
||||||
return (new courseinfo($course->id))->editor_model();
|
return (new courseinfo($course->id))->editor_model();
|
||||||
} else {
|
} else {
|
||||||
// probably should return a nice message
|
// probably should return a nice message
|
||||||
|
|
Loading…
Reference in a new issue