Skip to content

A platform for community discussion. Free, open, simple.

DEV: Invalidate theme cache when S3 configuration changes (#17872)

David Taylord6bba1ea9d3e
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)