MDL-66667 course: add course image cache

This commit is contained in:
Dmitrii Metelkin
2021-03-15 12:50:35 +11:00
parent fc335f5ea0
commit 2affc87d2b
8 changed files with 371 additions and 15 deletions
+3
View File
@@ -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);