FIX: incorrect caching of theme keys

This commit is contained in:
Sam 2018-02-23 17:58:13 +11:00
parent 4250ab522a
commit 6f076963f2
1 changed files with 1 additions and 1 deletions

View File

@ -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)