Removed visit table to save DB traffic, and fixed caching bug