I am using memcache for caching in my rails app and currently I have a
dev and a production environment.

I would like to run the dev environment without caching so that I can
debug more easily but I wanna enable the caching in production
obviously. I am using github and capistrano for deployment.

Without doing a check at every statement where I can potentially dig
into the cache, is there any way of handling this more gracefully or
globally?

if env == 'dev' @post = Post.all else //get @post from cache en

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to