diff --git a/lib/moodlelib.php b/lib/moodlelib.php index 82342ade81a..07fa67e787b 100644 --- a/lib/moodlelib.php +++ b/lib/moodlelib.php @@ -3355,11 +3355,6 @@ function remove_course_contents($courseid, $showfeedback=true) { delete_context(CONTEXT_COURSE, $course->id); } - // fix for MDL-9016 - // clear the cache because the course context is deleted, and - // we don't want to write assignment, overrides and context_rel table - // with this old context id! - get_context_instance('clearcache'); return $result; }