Updated comments, added check to make sure the user cache flushes successfully