has_request_cache.rb 275 B

12345678910111213
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. module ApplicationModel::HasRequestCache
  3. extend ActiveSupport::Concern
  4. included do
  5. after_commit :clear_request_cache
  6. end
  7. def clear_request_cache
  8. Auth::RequestCache.clear
  9. end
  10. end