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:
David Taylor 2022-08-11 11:03:57 +01:00 committed by GitHub
parent c85921a548
commit d6bba1ea9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -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)