Heroku与缓存

msa*_*var 3 caching ruby-on-rails heroku

我在我的应用程序中使用页面缓存.一切都在当地很好.但在我将更改推送到heroku服务器之后.缓存过期将无效.我使用扫描程序来跟踪和过期缓存页面.

这是在production.rb中进行缓存的配置

config.cache_store = :memory_store
#config.cache_store = :file_store, 'tmp/cache/'
I tried both ways nothing work.
Run Code Online (Sandbox Code Playgroud)

也许有一些我不知道的具体配置.

ben*_*sie 8

:memory_store将不适用于Heroku,并且:file_store只能用于./tmp关于目前的Dyno(Dynos彼此不了解).他们正在努力支持测试中的Memcached,你可以查看其他有关利用Varnish的文档:http://docs.heroku.com/http-caching