diff --git a/lib/db/upgrade.php b/lib/db/upgrade.php index e6d753e3201..83939ae05a9 100644 --- a/lib/db/upgrade.php +++ b/lib/db/upgrade.php @@ -1645,6 +1645,7 @@ WHERE gradeitemid IS NOT NULL AND grademax IS NOT NULL"); /// 'until' date in an activity condition should have 1 second subtracted /// (to go from 0:00 on the following day to 23:59 on the previous one). $DB->execute('UPDATE {course_modules} SET availableuntil = availableuntil - 1 WHERE availableuntil <> 0'); + rebuild_course_cache(0, true); /// Main savepoint reached upgrade_main_savepoint($result, 2009041700);