major whitespace cleanup - fixed tabs
[moodle.git] / search / cron.php
... / ...
CommitLineData
1<?php
2
3 /* cron script to perform all the periodic search tasks
4 *
5 * delete.php
6 * updates the index by pruning deleted documents
7 *
8 * update.php
9 * updates document info in the index if the document has been modified since indexing
10 *
11 * add.php
12 * adds documents created since the last index run
13 */
14
15 require_once('../config.php');
16 require_once("$CFG->dirroot/search/lib.php");
17
18 mtrace("<pre>Starting cron...\n");
19
20 mtrace("--DELETE----");
21 require_once("$CFG->dirroot/search/delete.php");
22 mtrace("--UPDATE----");
23 require_once("$CFG->dirroot/search/update.php");
24 mtrace("--ADD-------");
25 require_once("$CFG->dirroot/search/add.php");
26 mtrace("------------");
27
28 mtrace("cron finished.</pre>");
29
30?>