mirror of
https://github.com/moodle/moodle.git
synced 2025-08-10 03:16:42 +02:00
fix for MDL-9617, calendar performance issues
This commit is contained in:
parent
3cb6bd2c35
commit
7a543c5cfb
2 changed files with 8 additions and 24 deletions
|
@ -820,7 +820,9 @@ ORDER BY $sort");
|
|||
}
|
||||
}
|
||||
|
||||
if (!empty($USER->id) && ($USER->id == $userid)) {
|
||||
// MDL-9671, my courses should only get cached when '*' is chosen as the field, otherwise courses
|
||||
// can not be displayed properly as cached courses might contain missing course name etc
|
||||
if (!empty($USER->id) && ($USER->id == $userid) && $fields=='*') {
|
||||
$USER->mycourses[$doanything] = $mycourses;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue