search for: expire_all_recently_ad

Displaying 1 result from an estimated 1 matches for "expire_all_recently_ad".

2006 May 21
0
expiring cache fragments using script/runner
...ment inside a sweeper class, something like: class QuestionSweeper < ActionController::Caching::Sweeper observe Question def after_validation_on_update(question) expire_page :controller => ''xml'', :action => ''question'', :id => question.id expire_all_recently_added end ........ def expire_all_recently_added expire_fragment :controller => ''landing'', :action => ''last_added'', :part => ''list'' end . What I am stumped on is that I want to use script/runner which works on models, and expire_...