Skip to content

Commit

Permalink
MDL-53788 user: fix aggressive course cache rebuilding
Browse files Browse the repository at this point in the history
  • Loading branch information
nhoobin committed Jun 15, 2016
1 parent 99a5377 commit 2abe0ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion user/profile/definelib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 2abe0ac

Please sign in to comment.