zammad/app/models/application_model/has_request_cache.rb
2026-01-02 15:41:09 +02:00

13 lines
275 B
Ruby

# Copyright (C) 2012-2026 Zammad Foundation, https://zammad-foundation.org/
module ApplicationModel::HasRequestCache
extend ActiveSupport::Concern
included do
after_commit :clear_request_cache
end
def clear_request_cache
Auth::RequestCache.clear
end
end