Just in case anybody was wondering, if anybody wants to clear cache after updating a course activity or the like, simply:
$courseID = required_param('course', PARAM_INT);
rebuild_course_cache($courseID);
This did the trick for me. Here's the page that explains the rebuild course function: https://github.com/moodle/moodle/blob/master/lib/modinfolib.php.
Again, thank you very much, Renaat!
$courseID = required_param('course', PARAM_INT);
rebuild_course_cache($courseID);
This did the trick for me. Here's the page that explains the rebuild course function: https://github.com/moodle/moodle/blob/master/lib/modinfolib.php.
Again, thank you very much, Renaat!