add cache clear when persisted