Closed rajandangi closed 2 months ago
This PR optimizes the reengagement_get_startusers function by loading the modinfo once per course and caching it to avoid multiple calls to get_fast_modinfo.
reengagement_get_startusers
modinfo
get_fast_modinfo
I'd be surprised if this makes much of a difference to performance, but the code reads better and does the same thing so I'm happy to merge.
This PR optimizes the
reengagement_get_startusers
function by loading themodinfo
once per course and caching it to avoid multiple calls toget_fast_modinfo
.