Skip to content

[WIP] Make page cacheable for render faster

Jason Lee requested to merge huacnlee/gitlab-ce:feature/cachable into master

Ideas:

  • Use fragment cache View as much as possible, make sure cache block have nothing about user;
  • Ensure model changes will touch the references model to update cache_key;
  • Use Javascript or CSS to process the logic related user ability, move out of the cache block;
  • Add second_level_cache

TODO List:

  • Issues
  • MergeRequests
  • Milestones can not, there have a little counter in view
  • Build CommitStatus
  • Move MR ci_build status out of the cache block

Issue List

Before:

Rendered projects/issues/_issues.html.haml (385.8ms)

After:

Rendered projects/issues/_issues.html.haml (70.1ms)

Merge request reports