mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 17:02:03 +02:00
Merge branch 'MDL-25191-master' of git://github.com/sammarshallou/moodle
This commit is contained in:
commit
a6b2f0faf2
@ -1074,6 +1074,8 @@ function get_fast_modinfo(&$course, $userid=0) {
|
||||
if (count($cache) > MAX_MODINFO_CACHE_SIZE) {
|
||||
reset($cache);
|
||||
$key = key($cache);
|
||||
unset($cache[$key]->instances);
|
||||
unset($cache[$key]->cms);
|
||||
unset($cache[$key]);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user