code_junkie

Fragment Caching with Memcached

Nov 12th, 2011
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. ActionController::Base.cache_store = ActiveSupport::Cache::MemCacheStore.new()
  2.  
  3. config.action_controller.perform_caching = true
  4. config.cache_classes = true
  5. config.cache_store = :mem_cache_store
Add Comment
Please, Sign In to add comment