From d6bba1ea9d3e42e31987087d42558019dc1da96d Mon Sep 17 00:00:00 2001 From: David Taylor Date: Thu, 11 Aug 2022 11:03:57 +0100 Subject: [PATCH] DEV: Invalidate theme cache when S3 configuration changes (#17872) Compiled themes often include upload URLs which will need to be re-calculated --- app/models/theme.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/models/theme.rb b/app/models/theme.rb index 4727426a15f..9bda971d549 100644 --- a/app/models/theme.rb +++ b/app/models/theme.rb @@ -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)