MDL-16553 Assignment, student view: whitespace fix
[moodle.git] / search / cron.php
blobdd04ae260a52b2d4fa1f8434dcb7d6f2315fa4d1
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 if (!defined('MOODLE_INTERNAL')) {
16 die('Direct access to this script is forbidden.'); /// It must be included from a Moodle page
19 require_once("$CFG->dirroot/search/lib.php");
21 if (empty($CFG->enableglobalsearch)) {
22 mtrace('Global searching is not enabled. Nothing performed by search.');
24 else{
25 include("{$CFG->dirroot}/search/cron_php5.php");