Fixed bug: Setting change_id is always nil after re-initializing of app in test env and prevents (re-)loading of Settings.
This commit is contained in:
parent
83ed53d245
commit
86bab028a4
1 changed files with 1 additions and 1 deletions
|
@ -150,7 +150,7 @@ reload config settings
|
|||
return true
|
||||
end
|
||||
change_id = Cache.get('Setting::ChangeId')
|
||||
if change_id == @@change_id
|
||||
if @@change_id && change_id == @@change_id
|
||||
@@lookup_at = Time.zone.now # rubocop:disable Style/ClassVars
|
||||
#logger.debug "Setting.cache_valid?: cache still valid, #{@@change_id}/#{change_id}"
|
||||
return true
|
||||
|
|
Loading…
Reference in a new issue