fix ip+user cache logic