Displaying 1 result from an estimated 1 matches for "publishsweep".
Did you mean:
publishsweeper
2007 Feb 14
4
cache sweeper not getting called
...after_save/after_update callbacks aren''t running. Also if I try
to call "expire_page", I get a method missing error. It seems like the
class isn''t actually extending the Sweeper at all, is there something
I''m missing??
Here''s the sweeper code:
class PublishSweeper < ActionController::Caching::Sweeper
observe Program
def initialize
puts "sweeper initialised"
end
def after_save(record)
puts "The sweeper knows that node: #{record.inspect} has been
saved!"
end
def after_update(record)
puts "The sweeper k...