This also includes the abstract class course_module_viewed.
Now we are checking for the need to execute the allocator every time the main view.php is displayed to any user. Previously this was done by cron only.