What's the difference between erasing a cache and invalidating it?