The accesslib cleanups aren't needed every 5. Also, add
build_context_path() and instructions on how to run it
as build_context_path(true) to force a path rebuild.
tag_cron();
}
+ // Accesslib stuff
+ cleanup_contexts();
+ cleanup_dirty_contexts();
+ // If you suspect that the context paths are somehow corrupt
+ // replace the line below with: build_context_path(true);
+ build_context_path();
+
} // End of occasional clean-up tasks
unset($authplugin);
}
- // Accesslib stuff
- cleanup_contexts();
- cleanup_dirty_contexts();
-
if (!empty($CFG->enablestats) and empty($CFG->disablestatsprocessing)) {
// check we're not before our runtime