#765 Fix Cache clear function