Rails Action Caching for user specific records
问题 I am a rails newbie trying to implement caching for my app. I installed memcached and configured it in my development.rb as follows: config.action_controller.perform_caching = true config.cache_store = :mem_cache_store I have a controller ProductsController that shows user specific products when they are logged in. class ProductsController < ApplicationController caches_action :index, :layout => false before_filter :require_user def index @user.products end end The route for index action is: