hook_node_insert() sporadically not being fired after node_save()
The only other note I'd make is to ensure that you don't have an &amp; (ampersand) in front of $node in your function definition.  I was porting from a drupal 6 site's nodeapi function and was using hook_node_insert(&amp;$node) and it wasn't until I removed the ampersand that it started working.