Remove version cache initializer

This commit is contained in:
Eugene Burmakin 2025-05-31 18:33:01 +02:00
parent 4a6ba8126f
commit 25442b4622

View file

@ -1,9 +0,0 @@
# frozen_string_literal: true
# Defer cache operations until after initialization to avoid SolidCache loading issues
Rails.application.config.after_initialize do
# Skip cache clearing when running the Rails console
unless defined?(Rails::Console) || File.basename($PROGRAM_NAME) == 'rails' && ARGV.include?('console')
Rails.cache.delete('dawarich/app-version-check') if Rails.cache.respond_to?(:delete)
end
end