3 /* worker.php - part of advanced build vichan feature */
5 require dirname(__FILE__
) . '/inc/cli.php';
6 require_once 'inc/controller.php';
8 $config['smart_build'] = false; // Let's disable it, so we can build the page for real
9 $config['generation_strategies'] = array('strategy_immediate');
11 function after_open_board() { global $config;
12 $config['smart_build'] = false;
13 $config['generation_strategies'] = array('strategy_immediate');
16 echo "Hello world!\n";
18 $queue = get_queue('generate');
23 list($__, $func, $ary, $action) = unserialize($v);
24 echo "Starting to generate $func ".implode(" ", $ary)."... ";
26 call_user_func_array($func, $ary);
30 if (!$q) usleep(20000); // 0.02s