-
- Downloads
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
Showing
- app/controllers/admin/appearances_controller.rb 1 addition, 1 deletionapp/controllers/admin/appearances_controller.rb
- app/helpers/appearances_helper.rb 1 addition, 1 deletionapp/helpers/appearances_helper.rb
- app/models/appearance.rb 20 additions, 0 deletionsapp/models/appearance.rb
- changelogs/unreleased/appearances-caching-and-schema.yml 4 additions, 0 deletionschangelogs/unreleased/appearances-caching-and-schema.yml
- db/migrate/20170809142252_cleanup_appearances_schema.rb 33 additions, 0 deletionsdb/migrate/20170809142252_cleanup_appearances_schema.rb
- db/schema.rb 4 additions, 4 deletionsdb/schema.rb
- spec/models/appearance_spec.rb 35 additions, 0 deletionsspec/models/appearance_spec.rb
Please register or sign in to comment