Save a tree. Clear the cache