save cache after update