add cache to visit history