MDL-66667 course: add course image cache
This commit is contained in:
@@ -2551,6 +2551,9 @@ function update_course($data, $editoroptions = NULL) {
|
||||
// make sure the modinfo cache is reset
|
||||
rebuild_course_cache($data->id);
|
||||
|
||||
// Purge course image cache in case if course image has been updated.
|
||||
\cache::make('core', 'course_image')->delete($data->id);
|
||||
|
||||
// update course format options with full course data
|
||||
course_get_format($data->id)->update_course_format_options($data, $oldcourse);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user