cache ancestors

In cache_tree_children, also cache ancestors if all ancestors are available