Heroku action caching doesn't seem to work
Asked Answered
A

1

6

I have been playing around with different caching strategies on Heroku and have add their memcached add-on with an aim to add action caching to my app.

When I view Rails.cache.stats on my current app however (with memcached installed and using the dalli gem) I get current and total_items at 0 after performing the actions that should be cached.

At the top of the controller with the action I want to cache I have:

caches_action :show

Also, I modified my environment config (for the one running on Heroku) to have

config.cache_store = :dalli_store

Is there some other stats I can look at to see if it is working or have I done something wrong?

Arsenious answered 3/8, 2011 at 11:58 Comment(1)
http://devcenter.heroku.com/articles/memcache you have gone through all of that and added the necessary configs?Aholla
G
2

You need to enable caching as well as configuring a cache store:

config.action_controller.perform_caching             = true
Grisette answered 18/8, 2011 at 20:39 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.