2
I am using the caches_page in a controller in my application in Rails 4.
caches_page :index, expires_in: 10.minutes
I need to have this controller run again after 10 minutes and generate a new page. When I run this in the production environment after 10 minutes the page is not expired.
I am 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 fix this?
Thank you!
You can mark your answer as correct to "close" the question.
– utluiz