fixed d success flag for cache