1 class TraceSweeper < ActionController::Caching::Sweeper
4 def after_create(record)
5 expire_cache_for(record)
8 def after_update(record)
9 expire_cache_for(record)
12 def after_destroy(record)
13 expire_cache_for(record)
18 def expire_cache_for(record)
19 expire_action(:controller => 'trace', :action => 'view', :display_name => record.user.display_name, :id => record.id)
21 expire_action(:controller => 'trace', :action => 'list', :display_name => nil, :tag => nil)
22 expire_action(:controller => 'trace', :action => 'list', :display_name => record.user.display_name, :tag => nil)
24 expire_action(:controller => 'trace', :action => 'georss', :display_name => nil, :tag => nil)
25 expire_action(:controller => 'trace', :action => 'georss', :display_name => record.user.display_name, :tag => nil)