Heroku with caching

I use page caching in my application. Everything is working fine. But after I push the changes to the server to the hero. Expiration caching will not work. I use sweepers to track and expire cached pages.

Here is the configuration for caching in production.rb

config.cache_store = :memory_store
#config.cache_store = :file_store, 'tmp/cache/'
I tried both ways nothing work.

Perhaps there is a specific configuration that I do not know.

+3
source share
2 answers

:memory_store Heroku, :file_store . /tmp Dyno (Dynos ). Memcached -, : http://docs.heroku.com/http-caching

+8

Heroku rails ( , ) HTTP- . , . :expires_in => some.minutes.

.

+1

Source: https://habr.com/ru/post/1732097/


All Articles