Updates cache and figure