-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
4.0.12, 4.1.10, 4.2.8, 4.3.5, 4.4.1, 4.5
-
MOODLE_400_STABLE, MOODLE_401_STABLE, MOODLE_402_STABLE, MOODLE_403_STABLE, MOODLE_404_STABLE, MOODLE_405_STABLE
-
MDL-81937_main
-
When changing the icon of a preconfigured LTI tool the course module cache for all LTI activities based on that preconfigured tool gets purged. The SQL query that gets the affected course module IDs joins two tables at the wrong column causing the same course module IDs to be returned multiple times. This leads to unnecessary many calls to \course_modinfo::purge_course_module_cache() which has to acquire a lock, read from the cache, and release the lock each time it is called for the same course module.
In our case this has lead to 1,287,389 calls to purge_course_module_cache() being made instead of "only" the 29,747 that are necessary.
- is a regression caused by
-
MDL-72991 Regression from partial cache rebuild
- Closed