-
Bug
-
Resolution: Fixed
-
Minor
-
3.3
-
MOODLE_33_STABLE
-
MOODLE_33_STABLE
-
wip-
MDL-58688-master-c -
Calendar retrieves modules associated with calendar events using get_coursemodule_from_instance()
This method always performs a DB query. Considering we have to retrieve course modinfo anyway to check the module availability, this DB query is completely unnecessary.
We already know courseid (it is stored as part of the event) but we don't use it.
I assume this was present before 3.3 as well but in 3.3 we added even more overhead