I have a rails app that generates a webpage with some reports (Google charts backed by Postgres). The reports are quite time consuming to generate and don’t change during the day. I would like to schedule the generation of this page at a certain time of the day and then just serve this static page during the day? What is the easiest way to do this?
Share
caches_pageis what you’re looking for:http://guides.rubyonrails.org/caching_with_rails.html#page-caching
You can add Memcached etc into this mix too if needs be based on the type of infrastructure you’re running.