mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 17:06:53 +02:00
MDL-55231 core_course: Partial course cache rebuild
This commit is contained in:
parent
e5894c0455
commit
9a900492bc
15 changed files with 406 additions and 177 deletions
|
@ -190,7 +190,9 @@ if ((!empty($movetosection) or !empty($moveto)) and confirm_sesskey()) {
|
|||
|
||||
$DB->set_field('course_modules', 'indent', $cm->indent, array('id'=>$cm->id));
|
||||
|
||||
rebuild_course_cache($cm->course);
|
||||
course_purge_module_cache($cm);
|
||||
// Rebuild invalidated module cache.
|
||||
rebuild_course_cache($cm->course, false, true);
|
||||
|
||||
redirect(course_get_url($course, $cm->sectionnum, array('sr' => $sectionreturn)));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue