mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-12 02:01:39 -05:00
9 lines
422 B
Ruby
9 lines
422 B
Ruby
# 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
|