mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 04:31:56 +08:00
14 lines
199 B
Ruby
14 lines
199 B
Ruby
|
module AnonCacheInvalidator
|
||
|
extend ActiveSupport::Concern
|
||
|
|
||
|
included do
|
||
|
after_destroy do
|
||
|
Site.clear_anon_cache!
|
||
|
end
|
||
|
|
||
|
after_save do
|
||
|
Site.clear_anon_cache!
|
||
|
end
|
||
|
end
|
||
|
end
|