-
Bug
-
Resolution: Fixed
-
Minor
-
2.5.1
-
MOODLE_25_STABLE
-
MOODLE_25_STABLE
-
wip-
MDL-41114-master -
During some performance testing of courses/coursecat listings I found several bugs that significantly decrease performance in case of large amount of course categories.
- function coursecat::make_categories_list() does not use retrieved contexts and has to query them again.
- /course/manage.php uses field coursecat::$coursecount that was not fetched when retrieving the course category children.
- make_categories_options() unnecessary queries the course categories table again.
Both fixes are one-line so I submit them in one issue.