?> CRON</title></head> <body> <?php while (@ob_end_flush()) { } debug("--------------- CRON STARTED -----------------------------------"); line("CRON STARTED"); // this can be long duty! set_time_limit(18000); // don't garble reply message with warnings in HTML //ini_set("display_errors", 0); //******** cascading deletes may have problems. $repository->cleanTables(); //******** Perform expensive updates on objects sotf_Object::doUpdates(); line("UPDATES FINISHED"); //******** Synchronize with network: send new local data and forward new remote data // sync with all neighbours $rpc = new rpc_Utils(); $neighbours = sotf_Neighbour::listAll(); //debug("neighbours", $neighbours); if (count($neighbours) > 0) { while (list(, $neighbour) = each($neighbours)) { $neighbour->sync(); } } line("SYNC FINISHED"); //******** Forward messages to remote nodes // for all nodes $nodes = sotf_Node::listAll();