MDL-18297: Forgot that course cache needs rebuilding for upgraded dates

This commit is contained in:
sam_marshall
2009-04-17 16:21:15 +00:00
parent e7c6bf0eab
commit 0f9534c121
+1
View File
@@ -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);