Guard config loader during cache clear

This commit is contained in:
Sojan Jose
2026-01-16 01:01:04 -08:00
parent 88fc18617d
commit 9ef476c6d8
2 changed files with 4 additions and 1 deletions
+2
View File
@@ -58,6 +58,8 @@ class InstallationConfig < ApplicationRecord
end
def clear_cache
return if ConfigLoader.processing?
GlobalConfig.clear_cache
end
+2 -1
View File
@@ -5,11 +5,12 @@ class ConfigLoader
}.freeze
def self.processing?
Thread.current[:config_loader_processing]
Thread.current[:config_loader_processing] || @processing
end
def self.processing=(value)
Thread.current[:config_loader_processing] = value
@processing = value
end
def process(options = {})