MDL-10870 All files updated to new build_navigation() method. Most are untested,...
[moodle-pu.git] / search / cron.php
blob75d6d86c751060d12f04cbf4c022f06cf965495b
1 <?php
3 /* cron script to perform all the periodic search tasks
5 * delete.php
6 * updates the index by pruning deleted documents
8 * update.php
9 * updates document info in the index if the document has been modified since indexing
11 * add.php
12 * adds documents created since the last index run
15 require_once('../config.php');
16 require_once("$CFG->dirroot/search/lib.php");
18 if (empty($CFG->enableglobalsearch)) {
19 mtrace('Global searching is not enabled.');
20 return;
23 mtrace("<pre>Starting cron...\n");
25 mtrace("--DELETE----");
26 require_once("$CFG->dirroot/search/delete.php");
27 mtrace("--UPDATE----");
28 require_once("$CFG->dirroot/search/update.php");
29 mtrace("--ADD-------");
30 require_once("$CFG->dirroot/search/add.php");
31 mtrace("------------");
33 mtrace("cron finished.</pre>");