From 8989916f212441207d727c525c7b2f581d3bc61b Mon Sep 17 00:00:00 2001 From: Rolf Schmidt Date: Tue, 25 Jan 2022 09:53:41 +0000 Subject: [PATCH] Fixes #3685 - Zammad UI should silently discard Cache / apply2file errors. --- lib/active_support/cache/zammad_file_store.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/active_support/cache/zammad_file_store.rb b/lib/active_support/cache/zammad_file_store.rb index 5bb70088c..3d40c4772 100644 --- a/lib/active_support/cache/zammad_file_store.rb +++ b/lib/active_support/cache/zammad_file_store.rb @@ -7,6 +7,9 @@ module ActiveSupport # in certain cases, caches are deleted by other thread at same # time, just log it super + rescue Errno::ENOENT => e + Rails.logger.debug { "Can't write cache (probably related to high load / https://github.com/zammad/zammad/issues/3685) #{name}: #{e.inspect}" } + Rails.logger.debug e rescue => e Rails.logger.error "Can't write cache #{name}: #{e.inspect}" Rails.logger.error e