bust head cache on tree traversal if the sha of the root path being iterated has changed