add counter cache, fix turbolinks issue for external redirection