Skip to content

Add caching around widget JSON [RUN ALL RSPEC] [RUN AS-IF-FOSS]

Robert May requested to merge cached-mr-widget into master

What does this MR do?

Drops about 150ms off the Projects::MergeRequestsController#show action by caching the rendered widget JSON used to populate various links and such in the JS frontend. This is cached per-user and currently on a 10 minute TTL.

Related #209912

Screenshots (strongly suggested)

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

Does this MR contain changes to processing or storing of credentials or tokens, authorization and authentication methods or other items described in the security review guidelines? If not, then delete this Security section.

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team
Edited by Robert May

Merge request reports