mirror of
https://github.com/discourse/discourse.git
synced 2025-03-20 21:15:46 +08:00
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,
|
||||
Ember::VERSION,
|
||||
GlobalSetting.cdn_url,
|
||||
GlobalSetting.s3_cdn_url,
|
||||
GlobalSetting.s3_endpoint,
|
||||
GlobalSetting.s3_bucket,
|
||||
Discourse.current_hostname
|
||||
]
|
||||
Digest::SHA1.hexdigest(dependencies.join)
|
||||
|
Loading…
x
Reference in New Issue
Block a user