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:
Andrew Robert Nicols
2012-05-10 11:38:42 +01:00
parent e16e2300c5
commit 3aaa184399
+3
View File
@@ -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);
}
/**