Fix invalidate cache function.