MDL-11719 increased size of idnumber in user table - needed for some enrolment plugin...
[moodle.git] / search / cron.php
CommitLineData
d9e1bf24 1<?php
2
07c0c46f 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*/
791a4cec 14
30715546 15 if (!defined('MOODLE_INTERNAL')) {
16 die('Direct access to this script is forbidden.'); /// It must be included from a Moodle page
17 }
18
07c0c46f 19 require_once("$CFG->dirroot/search/lib.php");
eef868d1 20
dd93d8e9 21 if (empty($CFG->enableglobalsearch)) {
07c0c46f 22 mtrace('Global searching is not enabled. Nothing performed by search.');
23 }
24 else{
0a4c172c 25 include("{$CFG->dirroot}/search/cron_php5.php");
07c0c46f 26 }
27?>