mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-30 10:58:31 -05:00
13 lines
243 B
Ruby
13 lines
243 B
Ruby
|
class AnonSiteJsonCacheObserver < ActiveRecord::Observer
|
||
|
observe :category, :post_action_type, :user_field, :group
|
||
|
|
||
|
def after_destroy(object)
|
||
|
Site.clear_anon_cache!
|
||
|
end
|
||
|
|
||
|
def after_save(object)
|
||
|
Site.clear_anon_cache!
|
||
|
end
|
||
|
|
||
|
end
|