accesslib: Introducing cleanup_contexts() and use it in cron
The newly minted cleanup_contexts() walks the context table matching contexts with the tables they are referencing and clearing any leftover contexts.
This commit is contained in:
@@ -368,6 +368,9 @@
|
||||
unset($authplugin);
|
||||
}
|
||||
|
||||
// Accesslib stuff
|
||||
cleanup_contexts();
|
||||
|
||||
if (!empty($CFG->enablestats) and empty($CFG->disablestatsprocessing)) {
|
||||
|
||||
// check we're not before our runtime
|
||||
|
||||
Reference in New Issue
Block a user