-
- Downloads
Cache issuable template names
We were looking these up on each request to an issue page, because the form is pre-filled, as is the template dropdown. That was unnecessary: we could just treat these as 'special' repository files (like the rendered README) and cache them in Redis until they change on a push.
Showing
- app/helpers/issuables_helper.rb 2 additions, 10 deletionsapp/helpers/issuables_helper.rb
- app/models/repository.rb 15 additions, 2 deletionsapp/models/repository.rb
- changelogs/unreleased/cache-issuable-template-names.yml 5 additions, 0 deletionschangelogs/unreleased/cache-issuable-template-names.yml
- lib/gitlab/file_detector.rb 2 additions, 0 deletionslib/gitlab/file_detector.rb
- spec/lib/gitlab/file_detector_spec.rb 8 additions, 0 deletionsspec/lib/gitlab/file_detector_spec.rb
- spec/models/repository_spec.rb 3 additions, 1 deletionspec/models/repository_spec.rb
Please register or sign in to comment