MDL-53788 user: fix aggressive course cache rebuilding

This commit is contained in:
Nicholas Hoobin 2016-05-03 14:29:20 +10:00
parent 99a5377bb7
commit 2abe0ac5a9

View File

@ -322,7 +322,7 @@ function profile_delete_field($id) {
// but show the field as missing until manually corrected to something else.
// Need to rebuild course cache to update the info.
rebuild_course_cache();
rebuild_course_cache(0, true);
// Try to remove the record from the database.
$DB->delete_records('user_info_field', array('id' => $id));