mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-11 09:41:40 -05:00
Remove version cache initializer
This commit is contained in:
parent
4a6ba8126f
commit
25442b4622
1 changed files with 0 additions and 9 deletions
|
|
@ -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
|
||||
Loading…
Reference in a new issue