discourse/app/models/concerns/anon_cache_invalidator.rb

16 lines
230 B
Ruby

# frozen_string_literal: true
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