From ad72d0d7024ab56b2603eaf14e0ab912c16a22d3 Mon Sep 17 00:00:00 2001 From: martinlanghoff Date: Wed, 19 Sep 2007 07:29:20 +0000 Subject: [PATCH] admin/cron: move accesslib stuff to occasional cleanups, add build_context_path() 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. --- admin/cron.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/admin/cron.php b/admin/cron.php index 2a9d717d2e..6e800104ad 100644 --- a/admin/cron.php +++ b/admin/cron.php @@ -293,6 +293,13 @@ 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 @@ -368,10 +375,6 @@ unset($authplugin); } - // Accesslib stuff - cleanup_contexts(); - cleanup_dirty_contexts(); - if (!empty($CFG->enablestats) and empty($CFG->disablestatsprocessing)) { // check we're not before our runtime -- 2.39.5