search for: expire_staff_pag

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

Did you mean: expire_staff_page
2007 Sep 10
2
expire_page not working
I''ve enabled page caching on a site I''m currently constructing. The sweeper is called upon any changes made to the model, as expected. The sweeper code is as follows: class PersonSweeper < ActionController::Caching::Sweeper observe Person def after_update(person) expire_staff_page end def after_destroy(person) expire_staff_page end def expire_staff_page $stderr.puts "@@@@@ Expiring staff page" expire_page( :controller => ''welcome'', :action => ''staff'' ) $stderr.puts "@@@@@ Staff Page Expired&q...