3 /* cron script to perform all the periodic search tasks
6 * updates the index by pruning deleted documents
9 * updates document info in the index if the document has been modified since indexing
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.');
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>");