From 0f9534c121d226d36559203dcc6525ef012ae686 Mon Sep 17 00:00:00 2001 From: sam_marshall Date: Fri, 17 Apr 2009 16:21:15 +0000 Subject: [PATCH] MDL-18297: Forgot that course cache needs rebuilding for upgraded dates --- lib/db/upgrade.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/db/upgrade.php b/lib/db/upgrade.php index e6d753e320..83939ae05a 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); -- 2.39.5