MDL-32881 Prevent course/view.php from being cached
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 commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user