Permalink
Browse files

Merge branch 'MDL-25191-m20' of git://github.com/sammarshallou/moodle…

… into MOODLE_20_STABLE
  • Loading branch information...
2 parents 98c1207 + c281550 commit b5e1c2e748008d39914b15a63d114d3cf5a74b79 @stronk7 stronk7 committed May 30, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/modinfolib.php
View
@@ -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]);
}

0 comments on commit b5e1c2e

Please sign in to comment.