Commit 472a6a1c authored by Rémy Coutable's avatar Rémy Coutable

Used cached value of project count to reduce DB load

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent 0f4ff69f
...@@ -90,6 +90,7 @@ v 8.11.0 (unreleased) ...@@ -90,6 +90,7 @@ v 8.11.0 (unreleased)
- Sort folders with submodules in Files view !5521 - Sort folders with submodules in Files view !5521
v 8.10.5 (unreleased) v 8.10.5 (unreleased)
- Cache project count for 5 minutes to reduce DB load
v 8.10.4 v 8.10.4
- Don't close referenced upstream issues from a forked project. - Don't close referenced upstream issues from a forked project.
......
...@@ -112,7 +112,7 @@ ...@@ -112,7 +112,7 @@
%h4 Projects %h4 Projects
.data .data
= link_to admin_namespaces_projects_path do = link_to admin_namespaces_projects_path do
%h1= number_with_delimiter(Project.count) %h1= number_with_delimiter(Project.cached_count)
%hr %hr
= link_to('New Project', new_project_path, class: "btn btn-new") = link_to('New Project', new_project_path, class: "btn btn-new")
.col-sm-4 .col-sm-4
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment