Skip to content

Commit

Permalink
Merge pull request #16601 from bdunne/settings_cache
Browse files Browse the repository at this point in the history
Cache invalidation...
  • Loading branch information
carbonin authored Dec 6, 2017
2 parents 6b61ea8 + 81b2864 commit 0ebb083
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/models/miq_server/ntp_management.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ def ntp_reload
# matches ntp_reload_queue's guard clause
return if !MiqEnvironment::Command.is_appliance? || MiqEnvironment::Command.is_container?

# Bust the settings cache allowing this worker to apply any recent changes made by another (UI) worker
Vmdb::Settings.reload!
ntp_settings = get_config("vmdb").config[:ntp]

if @ntp_settings && @ntp_settings == ntp_settings
Expand Down

0 comments on commit 0ebb083

Please sign in to comment.