diff options
author | Yorick Peterse <yorickpeterse@gmail.com> | 2017-08-09 17:41:51 +0300 |
---|---|---|
committer | Yorick Peterse <yorickpeterse@gmail.com> | 2017-08-10 13:45:49 +0300 |
commit | 26bb50412ce44be434d7bb86a952397b7983deb5 (patch) | |
tree | ae68cd680fc814930299c2c68f414bc2edb70757 /app/helpers/appearances_helper.rb | |
parent | 53ee38053cb924b57447e385dee2a45b8e759ff5 (diff) |
Cache Appearance instances in Redis
This caches the result of Appearance.first in a similar fashion to how
ApplicationSetting instances are cached. We also add some NOT NULL
constraints to the table and correct the timestamp types.
Fixes gitlab-org/gitlab-ce#36066, fixes gitlab-org/gitlab-ce#31698
Diffstat (limited to 'app/helpers/appearances_helper.rb')
-rw-r--r-- | app/helpers/appearances_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/appearances_helper.rb b/app/helpers/appearances_helper.rb index 16136d02530..cdf5fa5d4b7 100644 --- a/app/helpers/appearances_helper.rb +++ b/app/helpers/appearances_helper.rb @@ -20,7 +20,7 @@ module AppearancesHelper end def brand_item - @appearance ||= Appearance.first + @appearance ||= Appearance.current end def brand_header_logo |