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...
(cherry picked from commit 0ebb083)

https://bugzilla.redhat.com/show_bug.cgi?id=1517959
  • Loading branch information
carbonin authored and simaishi committed Dec 11, 2017
1 parent f0c8598 commit 5716c13
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 5716c13

Please sign in to comment.