Cache management based on version