DEV: Invalidate theme cache when S3 configuration changes (#17872)
Compiled themes often include upload URLs which will need to be re-calculated
This commit is contained in:
parent
c85921a548
commit
d6bba1ea9d
|
@ -159,6 +159,9 @@ class Theme < ActiveRecord::Base
|
||||||
BASE_COMPILER_VERSION,
|
BASE_COMPILER_VERSION,
|
||||||
Ember::VERSION,
|
Ember::VERSION,
|
||||||
GlobalSetting.cdn_url,
|
GlobalSetting.cdn_url,
|
||||||
|
GlobalSetting.s3_cdn_url,
|
||||||
|
GlobalSetting.s3_endpoint,
|
||||||
|
GlobalSetting.s3_bucket,
|
||||||
Discourse.current_hostname
|
Discourse.current_hostname
|
||||||
]
|
]
|
||||||
Digest::SHA1.hexdigest(dependencies.join)
|
Digest::SHA1.hexdigest(dependencies.join)
|
||||||
|
|
Loading…
Reference in New Issue