modifed to put account cache when update account.