]> git.mjollnir.org Git - moodle.git/commitdiff
moodlelib:remove_course_contents() does not need to 'clearcache'
authormartinlanghoff <martinlanghoff>
Wed, 19 Sep 2007 07:17:45 +0000 (07:17 +0000)
committermartinlanghoff <martinlanghoff>
Wed, 19 Sep 2007 07:17:45 +0000 (07:17 +0000)
Now that delete_context() marks things dirty, we no longer
need to clearcache. Which is deprecated anyway.

lib/moodlelib.php

index 82342ade81ae59205bbb53775e65a25a8a9de57e..07fa67e787b6d2702aa6cc26ceda3d1e69e501fc 100644 (file)
@@ -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;
 }