How to store a database intensive page into cache from a background process in rails
问题 In my website i have a database intensive page which i cache for 5 mins. But still the performance is hit when the cache expires and the page has to be rendered freshly. I was thinking why not compute the page from a background process(like workling) once in 5 mins and store it in the cache and let the user request be serve from the cache everytime. And as a result no user have to wait for this page to be rendered. Is there a efficient way to do it? Any help very much appreciated. Thanks, 回答1