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:
Thorsten Eckel 2018-09-28 14:16:50 +02:00
parent 83ed53d245
commit 86bab028a4

View file

@ -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