This should prevent browser caching which will ensure that changes made
using the course javascript (e.g. drag/drop, show/hide) will not be 'lost'
by using the browser back button.
This reverts commit
3aaa1843999eeb1832331ec5c8b30865fdba9710.
$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);
-
return true;
}
$PAGE->set_url('/course/view.php', $urlparams); // Defined here to avoid notices on errors etc
+ // Prevent caching of this page to stop confusion when changing page after making AJAX changes
+ $PAGE->set_cacheable(false);
+
preload_course_contexts($course->id);
$context = context_course::instance($course->id, MUST_EXIST);
$PAGE->set_url('/', $urlparams);
$PAGE->set_course($SITE);
+ // Prevent caching of this page to stop confusion when changing page after making AJAX changes
+ $PAGE->set_cacheable(false);
+
if ($CFG->forcelogin) {
require_login();
} else {