MDL-11278 Admin settings page completed, implementation of settings in the gradebook...
[moodle-pu.git] / search / cron.php
blob15cbb1c1b730b886c6db1945e6b801c68385df4e
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 (!search_check_php5()) {
19 $phpversion = phpversion();
20 mtrace("Sorry, cannot cron global search as it requires PHP 5.0.0 or later (currently using version $phpversion)");
22 else if (empty($CFG->enableglobalsearch)) {
23 mtrace('Global searching is not enabled. Nothing performed by search.');
25 else{
26 include("{$CFG->dirroot}/search/cron_php5.php");