A platform for community discussion. Free, open, simple.
DEV: Key the Theme `DistributedCache` on `BASE_COMPILER_VERSION` (#17495)
David Taylor92e8a6d62b23
diff --git a/app/models/theme.rb b/app/models/theme.rbindex 6488b36e52d..d82b5bd8486 100644--- a/app/models/theme.rb+++ b/app/models/theme.rb@@ -6,9 +6,11 @@ require 'json_schemer'class Theme < ActiveRecord::Baseinclude GlobalPath+ BASE_COMPILER_VERSION = 56+attr_accessor :child_components- @cache = DistributedCache.new('theme')+ @cache = DistributedCache.new("theme:compiler#{BASE_COMPILER_VERSION}")belongs_to :userbelongs_to :color_scheme@@ -154,7 +156,6 @@ class Theme < ActiveRecord::BaseSvgSprite.expire_cacheend- BASE_COMPILER_VERSION = 56def self.compiler_versionget_set_cache "compiler_version" dodependencies = [