Put a call to clear context cache after remove_course_contents(). A new context will be created for this course (and actually used!) so this should be fixed.
Yu Zhang
added a comment - Put a call to clear context cache after remove_course_contents(). A new context will be created for this course (and actually used!) so this should be fixed.
Put a call to clear context cache after remove_course_contents(). A new context will be created for this course (and actually used!) so this should be fixed.