mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 14:03:52 +01:00
49c4cfb2d5
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.