I'm using caches_page in a controller in my rails 4 application.
caches_page :index, expires_in: 10.minutes
I need to make this controller run again after 10 minutes and generate a new page. When I squeeze this in the production environment after 10 minutes the page is not expired.
I'm using the: memory_store in my config
config.consider_all_requests_local = false
config.action_controller.perform_caching = true
config.cache_store = :memory_store
How can I resolve this?
Thank you!