FIX: on upgrade via discourse docker client json not updating
This commit is contained in:
parent
e8323fa534
commit
63404b16bb
2 changed files with 9 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
# load up git version into memory
|
||||||
|
# this way if it changes underneath we still have
|
||||||
|
# the original version
|
||||||
|
Discourse.git_version
|
||||||
|
|
||||||
reload_settings = lambda {
|
reload_settings = lambda {
|
||||||
RailsMultisite::ConnectionManagement.each_connection do
|
RailsMultisite::ConnectionManagement.each_connection do
|
||||||
begin
|
begin
|
||||||
|
|
|
@ -177,7 +177,10 @@ module SiteSettingExtension
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.client_settings_cache_key
|
def self.client_settings_cache_key
|
||||||
"client_settings_json"
|
# NOTE: we use the git version in the key to ensure
|
||||||
|
# that we don't end up caching the incorrect version
|
||||||
|
# in cases where we are cycling unicorns
|
||||||
|
"client_settings_json_#{Discourse.git_version}"
|
||||||
end
|
end
|
||||||
|
|
||||||
# refresh all the site settings
|
# refresh all the site settings
|
||||||
|
|
Reference in a new issue