Sha256: 1597cb25e6d74c5cd29e23ec9cd9cf6cc39d977f582533ad5c2a7c27d0000a19
Contents?: true
Size: 409 Bytes
Versions: 1
Compression:
Stored size: 409 Bytes
Contents
# frozen_string_literal: true module TranslationCms module Api class ClearCache < Faraday::Middleware def call(env) @app.call(env) rescue Exception => e ::Rails.cache.clear if Rails.env.production? ::ExceptionNotifier.notify_exception(e) else puts e.backtrace.join("\n") raise e.message end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
translation_cms-0.1.5 | lib/translation_cms/api/clear_cache.rb |