has a piece of data, and the query is a little time-consuming. 
 but this data is not updated frequently. I wanted  to be written in the foreground  or  with cache  or  sessionstorage , but to make sure that  updates  in real time every time I modify it in the background. 
 is there any way to deal with it? 
