From 2abe0ac5a97d0bdfa893af98c73b9a80f489d205 Mon Sep 17 00:00:00 2001 From: Nicholas Hoobin Date: Tue, 3 May 2016 14:29:20 +1000 Subject: [PATCH] MDL-53788 user: fix aggressive course cache rebuilding --- user/profile/definelib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/user/profile/definelib.php b/user/profile/definelib.php index b60d5add2d2..fecf3159adb 100644 --- a/user/profile/definelib.php +++ b/user/profile/definelib.php @@ -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));