MDL-53788 multilangupgrade: fix aggressive course cache rebuilding
authorNicholas Hoobin <nicholashoobin@catalyst-au.net>
Wed, 15 Jun 2016 00:49:28 +0000 (10:49 +1000)
committerNicholas Hoobin <nicholashoobin@catalyst-au.net>
Wed, 15 Jun 2016 00:49:28 +0000 (10:49 +1000)
admin/tool/multilangupgrade/index.php

index 6b4ce5c..0cc6b41 100644 (file)
@@ -121,7 +121,7 @@ echo $OUTPUT->box_end();
 
 /// Rebuild course cache which might be incorrect now
 echo $OUTPUT->notification('Rebuilding course cache...', 'notifysuccess');
-rebuild_course_cache();
+rebuild_course_cache(0, true);
 echo $OUTPUT->notification('...finished', 'notifysuccess');
 
 echo $OUTPUT->continue_button(new moodle_url('/admin/'));