app/sweepers/pages_sweeper.rb in alchemy_cms-2.0.7 vs app/sweepers/pages_sweeper.rb in alchemy_cms-2.1.beta1

- old
+ new

@@ -32,6 +32,16 @@ end end end end + def expire_page(page) + return if page.do_not_sweep + expire_action( + :controller => '/pages', + :action => :show, + :urlname => page.urlname_was, + :lang => multi_language? ? page.language_code : nil + ) + end + end