From 6f076963f2c1cc419f8be8af901e6b7c111f99d2 Mon Sep 17 00:00:00 2001 From: Sam Date: Fri, 23 Feb 2018 17:58:13 +1100 Subject: [PATCH] FIX: incorrect caching of theme keys --- app/models/theme.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/theme.rb b/app/models/theme.rb index 280fa6847f6..e8aeaf05531 100644 --- a/app/models/theme.rb +++ b/app/models/theme.rb @@ -72,7 +72,7 @@ class Theme < ActiveRecord::Base if keys = @cache["user_theme_keys"] return keys end - @cache["theme_keys"] = Set.new( + @cache["user_theme_keys"] = Set.new( Theme .where('user_selectable OR key = ?', SiteSetting.default_theme_key) .pluck(:key)