mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: incorrect caching of theme keys
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user