Tech Lull
 
 
JavaPHPSQLDrupalOpenGLMathematicsRenderings
 
 

cron breaks on drupal_goto

back to drupal tips...
Printer friendlyPrinter friendly
drupal_version: 
6.x

If you use drupal_goto within a node and have the search module enabled, when you go to index your site with cron, it will stop at the node redirect - and so will future crons. To get around this, you can put in conditionals like:

if ($_SERVER['SCRIPT_NAME'] != '/cron.php') { drupal_goto(); }
No votes yet
back to drupal tips...