expire_action in model possible

I don't know if it's possible (you might be able to use 'include
ActionController::Caching::Actions' in the model) but I prefer my
cache expiration to be outside of the model and in sweeper files..

class DeclarationSweeper < ActionController::Caching::Sweeper

  observe Declaration

  def after_create(page)
    # expire something...
  end

end

Leon Bogaert wrote: