Class: GallerySweeper
- Inherits:
-
ActionController::Caching::Sweeper
- Object
- ActionController::Caching::Sweeper
- GallerySweeper
show all
- Includes:
- PageCache
- Defined in:
- app/sweepers/gallery_sweeper.rb
Instance Method Summary
collapse
Methods included from PageCache
#delete_cache_pagination_galleries, #delete_cache_pagination_pictures, #delete_cache_pagination_tag, #expire_cache_galleries, #expire_cache_pictures, #expire_cache_tags, #expire_root, sweep_all
Instance Method Details
#after_create(gallery) ⇒ Object
7
8
9
|
# File 'app/sweepers/gallery_sweeper.rb', line 7
def after_create(gallery)
expire_cache(gallery)
end
|
#after_destroy(gallery) ⇒ Object
15
16
17
|
# File 'app/sweepers/gallery_sweeper.rb', line 15
def after_destroy(gallery)
expire_cache(gallery)
end
|
#after_update(gallery) ⇒ Object
11
12
13
|
# File 'app/sweepers/gallery_sweeper.rb', line 11
def after_update(gallery)
expire_cache(gallery)
end
|