trabajo-afectivo/lib/active_support/cache/zammad_file_store.rb

15 lines
373 B
Ruby
Raw Normal View History

module ActiveSupport
module Cache
class ZammadFileStore < FileStore
def write(name, value, options = {})
# in certain cases, caches are deleted by other thread at same
# time, just log it
super
rescue => e
Rails.logger.error "Can't write cache #{key}: #{e.inspect}"
Rails.logger.error e
end
end
end
end