update cached size