moodle/backup/controller
Matthew Hilton 49c4cfb2d5 MDL-73317 restore: Reset navcache before closing session
As part of a restore, the session is closed early so it does not
interrupt the users session during the restore.

Currently the restore controller rebuilds the course caches while
restoring. This inadvertently resets the navcache, which would edit the
session despite it being closed.

Because this tracker now adds logging for this behaviour, it means
restoring now outputs a debugging message as a warning.

To resolve the debugging message, the navcache is now reset just before
closing the session. This is allowed, since the caches are designed
to be volatile.
2023-02-09 12:03:49 +10:00
..
tests MDL-74548 backup: Unit tests for course copy refactor 2022-06-29 09:13:29 +08:00
backup_controller.class.php MDL-72265 backup: fix checking of override capabilites on restore 2021-08-05 13:54:59 +01:00
base_controller.class.php MDL-74548 backup: Deprecate get/set copy from base controller 2022-06-29 09:14:02 +08:00
restore_controller.class.php MDL-73317 restore: Reset navcache before closing session 2023-02-09 12:03:49 +10:00