delete cache when core data is updated