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:
martinlanghoff
2007-09-19 06:50:53 +00:00
parent 40e0bea5cc
commit 17b0efae11
2 changed files with 73 additions and 2 deletions
+3
View File
@@ -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