handle cache options is null