diff --git a/course/lib.php b/course/lib.php index 5b7f13a0b05..5bca7147db0 100644 --- a/course/lib.php +++ b/course/lib.php @@ -4516,6 +4516,9 @@ function include_course_ajax($course, $modules = array(), $config = null) { foreach ($modules as $module => $modname) { $PAGE->requires->string_for_js('pluginname', $module); } + + // Prevent caching of this page to stop confusion when changing page after making AJAX changes + $PAGE->set_cacheable(false); } /**