]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-18297: Forgot that course cache needs rebuilding for upgraded dates
authorsam_marshall <sam_marshall>
Fri, 17 Apr 2009 16:21:15 +0000 (16:21 +0000)
committersam_marshall <sam_marshall>
Fri, 17 Apr 2009 16:21:15 +0000 (16:21 +0000)
lib/db/upgrade.php

index e6d753e3201aef0aa2e5103e69b2d88daadf5dbf..83939ae05a9071074af72f3849b984820a20dc86 100644 (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);