Is there any way of using Memcached for fragment caching in Rails?
you can add this to your development.rb and it should do fragment caching as well as the others
config.action_controller.perform_caching = true
config.cache_classes = true
config.cache_store = :mem_cache_store
You can set the fragment_cache_store in your environment.rb
ActionController::Base.cache_store = ActiveSupport::Cache::MemCacheStore.new()
http://api.rubyonrails.org/classes/ActionController/Caching.html#M000628
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With