I’m using page caching within my application. Everything works fine locally. But after I push changes to heroku server. Caching expiration won’t work. I use sweepers to track and expire cached pages.
Here’s config for caching in the production.rb
config.cache_store = :memory_store
#config.cache_store = :file_store, 'tmp/cache/'
I tried both ways nothing work.
Maybe there’s some specific configuration which I don’t know.
The
:memory_storewon’t work with Heroku, and:file_storewill only work in ./tmpon the current Dyno (Dynos don’t know about each other). They’re working on supporting Memcached in beta and you can check out the other docs on taking advantage of Varnish: http://docs.heroku.com/http-caching