-
Bug
-
Resolution: Fixed
-
Critical
-
2.1, 2.2, 2.3.6, 2.4, 2.5
-
MOODLE_21_STABLE, MOODLE_22_STABLE, MOODLE_23_STABLE, MOODLE_24_STABLE, MOODLE_25_STABLE
-
MOODLE_24_STABLE, MOODLE_25_STABLE
-
wip-
MDL-34785-master -
-
The course overview block used frequently on the /my page has a default $courseslimit of 21 which means that it will show up to 21 courses on the /my page at a time.
The way in which this works means that get_fast_modinfo is called several times for each course (foreach module; foreach course), however, get_fast_modinfo tries to ensure that it doesn't run away with RAM and after MAX_MODINFO_CACHE_SIZE courses are found, it starts to remove entries.
The default value for MAX_MODINFO_CACHE_SIZE is 10, which means that if a user is enrolled on > 9 courses (+ the site itself), then the get_fast_modinfo cache is partially reset frequently, and on the next iteration, the data has to be re-requested massively reducing performance.
We should either:
- increase MAX_MODINFO_CACHE_SIZE; or
- decrease $courseslimit
- has a non-specific relationship to
-
MDL-36294 forum_print_overview() slow for large sites
-
- Closed
-
-
MDL-34273 Ability to set $courses_limit in block_course_overview in front-end admin
-
- Closed
-
- has been marked as being related by
-
MDL-34397 Develop course structure caching
-
- Closed
-
- is blocked by
-
MDL-34783 course_overview block doesn't retrieve all required fields for get_fast_modinfo
-
- Closed
-
- is duplicated by
-
MDL-36248 Course overview block causes multiple rebuilds of the course cache
-
- Closed
-
- will help resolve
-
MDL-34767 Loading the "My home" site takes too much time
-
- Closed
-