Displaying 1 result from an estimated 1 matches for "questionsweep".
Did you mean:
questionswe
2006 May 21
0
expiring cache fragments using script/runner
I''ve just set up caching on my site and want to expire some of fragments on
an hourly basis.
I was going to use cron and script/runner to do this.
For other fragments that I am expiring, I am using expire_fragment 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_recentl...