added history recording for workflows in the cache