If anyone is interested, here's code to implement hook_cron and autopopulate content based on cron

Put this function code in the bottom of devel_generate.module:

<?php
/**
 * Implementation of hook_cron
 * auto populate content via cron
 */

function devel_generate_cron(){
  require_once('(/absolute/path/toyour/site)/sites/all/modules/devel/devel_generate.inc'); // change to full absolute path to your devel_generate.inc script for cron

/* 
function parameters
devel_generate_content($number_of_nodes, $number_of_comments, $title_length, $delete_prev_content, array($node_types)); 
*/

  devel_generate_content(500, 0, 12, FALSE, array('story'=>'story', 'page' => 0)); 
}
?>

DT

Comments

davidwhthomas’s picture

I'm test scaling a default D5 drupal install to one million nodes for work :-)

davidwhthomas’s picture

Title: autopopulate content via cron » How To: Auto-populate content via cron
moshe weitzman’s picture

Status: Active » Closed (won't fix)

we now use batch api in devel_generate so the utility of this is mostly gone.