A platform for community discussion. Free, open, simple.
FIX: incorrect caching of theme keys
Sam6f076963f2c1
diff --git a/app/models/theme.rb b/app/models/theme.rbindex 280fa6847f6..e8aeaf05531 100644--- a/app/models/theme.rb+++ b/app/models/theme.rb@@ -72,7 +72,7 @@ class Theme < ActiveRecord::Baseif keys = @cache["user_theme_keys"]return keysend- @cache["theme_keys"] = Set.new(+ @cache["user_theme_keys"] = Set.new(Theme.where('user_selectable OR key = ?', SiteSetting.default_theme_key).pluck(:key)