Merge branch 'MDL-33212-master' of git://github.com/sammarshallou/moodle
[moodle.git] / course / lib.php
index cdc74a1..a5566d6 100644 (file)
@@ -2995,6 +2995,8 @@ function move_section($course, $section, $move) {
         }
         $n++;
     }
+    // After moving section, rebuild course cache.
+    rebuild_course_cache($course->id, true);
     return true;
 }