only update entity cache when query,not after save action