Search code examples
ruby-on-railsrubycachingmemcachedfragment-caching

Fragment Caching with Memcached


Is there any way of using Memcached for fragment caching in Rails?


Solution

  • 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