In our custom course format, I've successfully displayed a list of course modules with automatic and manual completion checkboxes. However, when I click on a course module which has automatic completion on view, when I go back to the course screen it does not refresh and still shows the module incomplete. If I manually refresh, it correctly shows as completed.
When I do the same on a course course format, the course is refreshed when I go back from the course module to the course screen. Is there something I can do in my course format to trigger the same behaviour?