From: moodler Date: Tue, 19 Sep 2006 07:08:19 +0000 (+0000) Subject: If the search and replace affected course->modinfo then courses may not work, X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=3f5edbdfa3b09d48b4bfd8dde8eea775d6b16e79;p=moodle.git If the search and replace affected course->modinfo then courses may not work, so clear the cache --- diff --git a/admin/replace.php b/admin/replace.php index 35e2507140..643607f02d 100644 --- a/admin/replace.php +++ b/admin/replace.php @@ -49,6 +49,10 @@ foreach ($tables as $table) { } } } + +/// Clear course cache which might be corrupted now +execute_sql("UPDATE ".$CFG->prefix."course SET modinfo = '' WHERE id <> ".SITEID); + print_simple_box_end(); print_continue('index.php');