cache last activity's id in group