diff --git a/backup/controller/restore_controller.class.php b/backup/controller/restore_controller.class.php index 0e60d08d53a..61032de826a 100644 --- a/backup/controller/restore_controller.class.php +++ b/backup/controller/restore_controller.class.php @@ -384,6 +384,9 @@ class restore_controller extends base_controller { // Release the session so other tabs in the same session are not blocked. if ($this->get_releasesession() === backup::RELEASESESSION_YES) { + // Preemptively reset the navcache before closing, so it remains the same on shutdown. + navigation_cache::destroy_volatile_caches(); + \core\session\manager::write_close(); }