Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-25191: Properly destroy all elements of the modinfo cache

  • Loading branch information...
commit c281550ce5f2b4466161f7b490616536dc2f9163 1 parent da63c93
@aolley aolley authored sammarshallou committed
Showing with 2 additions and 0 deletions.
  1. +2 −0  lib/modinfolib.php
View
2  lib/modinfolib.php
@@ -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]);
}
Please sign in to comment.
Something went wrong with that request. Please try again.