I have the foll开发者_JAVA百科owing relationships modeled in a Rails3 application: class User < ActiveRecord::Base
I have a sweeper that reheats cache by opening urls in forked processes. It\'s easy enough to hard-code the host for those urls, but I want it to change dynamically, based on environment.
We have the following sweeper in a rails application: class AgencyEquipmentTypeSweeper < ActionController::Caching::Sweeper
I\'m having some issues with Sweepers and Caching in Rails. The .html file in /cache is开发者_开发问答 being generated on first view.
I have action caching working on my Sites index, and set up a SiteSweeper that works fine: # app/controllers/admin/sites_controller.rb
I want to expire a cached action and wondered how to generate the correct reference. #controller caches_action :index, :layout => false
I\'ve got a sweeper that\'s supposed to expire a few action caches. Even though the debugger stops immediately before the call to expire_action, it\'s not actually expiring the action. Any idea what c