Skip to content

Commit

Permalink
ignore errors thrown by settings cache clear to avoid concurrency pro…
Browse files Browse the repository at this point in the history
…blems
  • Loading branch information
Floppy committed Apr 19, 2024
1 parent 2c80d68 commit 98c3c98
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/jobs/application_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ class ApplicationJob < ActiveJob::Base
# discard_on ActiveJob::DeserializationError

before_perform do |job|
SiteSettings.clear_cache
begin
SiteSettings.clear_cache
rescue
nil
end
job.status.update(started_at: DateTime.now)
end

Expand Down

0 comments on commit 98c3c98

Please sign in to comment.