1 class TracetagSweeper < 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 => 'list', :display_name => nil, :tag => record.tag)
20 expire_action(:controller => 'trace', :action => 'list', :display_name => record.trace.user.display_name, :tag => record.tag)
22 expire_action(:controller => 'trace', :action => 'georss', :display_name => nil, :tag => record.tag)
23 expire_action(:controller => 'trace', :action => 'georss', :display_name => record.trace.user.display_name, :tag => record.tag)