]> git.mjollnir.org Git - moodle.git/commitdiff
admin/cron: move accesslib stuff to occasional cleanups, add build_context_path()
authormartinlanghoff <martinlanghoff>
Wed, 19 Sep 2007 07:29:20 +0000 (07:29 +0000)
committermartinlanghoff <martinlanghoff>
Wed, 19 Sep 2007 07:29:20 +0000 (07:29 +0000)
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

index 2a9d717d2e143de6bb0d1a7b417be4d5f981af55..6e800104ad6a6120c5966ff7b7cdcc5f0f1a1da6 100644 (file)
             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