Reputation: 159
I am using memcached in production on a high traffic website and have only just switched to using Rails.
I am using Rails 2.3.2.
My question is: Is caching of of queries done automatically with this version of Rails? Or do I have to explicitly cache these queries?
I have seen conflicting documentation on this issue, and I am afraid of having to restart memcached to see exactly what is happening.
The documentation on this w.r.t rails seems patchy. I would appreciate if you could also point out the best place to read up on this.
Thanks! Vikram
Upvotes: 4
Views: 1772
Reputation: 6983
If you haven't explicitly set out and configured certain actions to be cached they won't be, so I would guess right now that you aren't actually using your memcached like you think you are.
As a starting point I'd recommend reading this article on the different methods of setting up caching within Rails.
I've also found this presentation to be useful as well as this excellent screencast.
If you're looking for help, it would be useful to know more of what you're trying to do: how write heavy is the application? How may pages / views / users are you trying to serve?
Upvotes: 6