mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-09 22:28:04 -05:00
15 lines
290 B
Ruby
15 lines
290 B
Ruby
# frozen_string_literal: true
|
|
|
|
class AppVersionCheckingJob < ApplicationJob
|
|
queue_as :default
|
|
sidekiq_options retry: false
|
|
|
|
def perform
|
|
return unless DawarichSettings.self_hosted?
|
|
|
|
Rails.cache.delete(CheckAppVersion::VERSION_CACHE_KEY)
|
|
|
|
CheckAppVersion.new.call
|
|
end
|
|
end
|