-
Improvement
-
Resolution: Fixed
-
Major
-
2.5, 2.6.3, 2.7, 2.8.7, 2.9.1
-
MOODLE_25_STABLE, MOODLE_26_STABLE, MOODLE_27_STABLE, MOODLE_28_STABLE, MOODLE_29_STABLE
-
MOODLE_28_STABLE, MOODLE_29_STABLE, MOODLE_30_STABLE
-
wip-
MDL-41042-master -
The "course contacts" (aka managers) shown in the course listings operate from a cache called "coursecontacts" that is refreshed every hour.
This can cause a surprise if you change some teachers and the changes are not reflected on the course immediately.
The reason for it was that calculating the course contacts can be complicated (not just enrolments but also roles and CFG settings), which is fair enough and what caches are for, but in this case it's a little overzealous.
I suggest that we add some cache invalidation for the common cases in the enrolment plugins as follows:
1) Keep the 1 hour lifetime, to handle edge cases.
2) Anytime enrolments are added or removed in a course (by any enrolment plugin), invalidate the cache for that course id.
- has a non-specific relationship to
-
MDL-52370 Course contacts cache should be purged when role is renamed
- Closed
- has been marked as being related by
-
MDL-50909 MDL-49489 Causes severe performance degradation of course index and search pages
- Closed
- is a regression caused by
-
MDL-37009 Output course listings throughout the site using renderer
- Closed
- is duplicated by
-
MDL-41832 Teacher appears in course list after being removed from course
- Closed
-
MDL-44096 Teacher name does not show under summary
- Closed
-
MDL-44493 Manually assigning or removing a teacher role to a user does not automatically reflect in course search screens
- Closed
-
MDL-45593 Wrong teachers shown in course description
- Closed
-
MDL-48746 Courses Category View not updated on Teacher enrolment
- Closed
-
MDL-49283 No reload role in page home.
- Closed
- will help resolve
-
MDL-50909 MDL-49489 Causes severe performance degradation of course index and search pages
- Closed