Class: PageSweeper

Inherits:
ActionController::Caching::Sweeper
  • Object
show all
Defined in:
lib/forge/app/sweepers/page_sweeper.rb

Instance Method Summary collapse

Instance Method Details

#after_destroy(page) ⇒ Object



8
9
10
# File 'lib/forge/app/sweepers/page_sweeper.rb', line 8

def after_destroy(page)
  trash_cache
end

#after_save(page) ⇒ Object



4
5
6
# File 'lib/forge/app/sweepers/page_sweeper.rb', line 4

def after_save(page)
  trash_cache
end