Moodle build: Moodle 3.0.1+ (Build: 20151223)
I have been having issues with manually enrolling users into a course. I am manually adding users from the Enrolment page with the Enrol users popup.
I notice that the problem is worse depending on the number of activities/assignments. It is taking up to a minute for each user to be enrolled and the page to refresh.
I discovered that if I uncheck Recover User's Grades, the enrollment process only takes a couple of seconds as it should.
I turned debugging on but nothing popped up. I am guessing that it is just taking time trying to look through grades before it loads. Strange thing is that the role that I am enrolling to is not a gradeable role so why is Moodle even trying to look for grades?
Any suggestions? Is this a bug? Can anyone else reproduce?