moodle/search/cron.php

27 lines
707 B
PHP
Raw Normal View History

2006-07-25 17:10:58 +00:00
<?php
2007-09-07 18:52:00 +00:00
/* cron script to perform all the periodic search tasks
*
* delete.php
* updates the index by pruning deleted documents
*
* update.php
* updates document info in the index if the document has been modified since indexing
*
* add.php
* adds documents created since the last index run
*/
if (!defined('MOODLE_INTERNAL')) {
die('Direct access to this script is forbidden.'); /// It must be included from a Moodle page
}
2007-09-07 18:52:00 +00:00
require_once("$CFG->dirroot/search/lib.php");
if (empty($CFG->enableglobalsearch)) {
2007-09-07 18:52:00 +00:00
mtrace('Global searching is not enabled. Nothing performed by search.');
}
else{
include("{$CFG->dirroot}/search/cron_php5.php");
2007-09-07 18:52:00 +00:00
}
?>