| [ Index ] |
PHP Cross Reference of Moodle 1.9.3 [Build 15-Oct-2008] |
[Summary view] [Print] [Text view]
1 <?php 2 /* 3 * Moodle global search engine 4 * This is a special externalized code for cron handling in PHP5. 5 * Should never be called by a php 4.3.0 implementation. 6 */ 7 8 try{ 9 // overrides php limits 10 $maxtimelimit = ini_get('max_execution_time'); 11 ini_set('max_execution_time', 300); 12 $maxmemoryamount = ini_get('memory_limit'); 13 ini_set('memory_limit', '48M'); 14 15 mtrace("\n--DELETE----"); 16 require_once("$CFG->dirroot/search/delete.php"); 17 mtrace("--UPDATE----"); 18 require_once("$CFG->dirroot/search/update.php"); 19 mtrace("--ADD-------"); 20 require_once("$CFG->dirroot/search/add.php"); 21 mtrace("------------"); 22 //mtrace("cron finished.</pre>"); 23 mtrace('done'); 24 25 // set back normal values for php limits 26 ini_set('max_execution_time', $maxtimelimit); 27 ini_set('memory_limit', $maxmemoryamount); 28 } 29 catch(Exception $ex){ 30 mtrace('Fatal exception from Lucene subsystem. Search engine may not have been updated.'); 31 mtrace($ex); 32 } 33 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Wed Jan 14 11:33:29 2009 | Cross-referenced by PHPXref 0.7 |