MDL-38773 Purge coursecat cache on course restore
authorMarina Glancy <marina@moodle.com>
Wed, 5 Jun 2013 02:02:33 +0000 (12:02 +1000)
committerMarina Glancy <marina@moodle.com>
Wed, 5 Jun 2013 02:02:33 +0000 (12:02 +1000)
backup/moodle2/restore_stepslib.php

index 8b02dc1..2efa487 100644 (file)
@@ -477,6 +477,8 @@ class restore_rebuild_course_cache extends restore_execution_step {
 
         // Rebuild cache now that all sections are in place
         rebuild_course_cache($this->get_courseid());
+        cache_helper::purge_by_event('changesincourse');
+        cache_helper::purge_by_event('changesincoursecat');
     }
 }