Commit 19e12bea authored by Robert May's avatar Robert May

Remove badge cache

Removes the badge cache from home panel as it is more
expensive to expire the cache than the time saved by
implementing it.

Changelog: changed
parent 6d98a244
...@@ -88,7 +88,6 @@ ...@@ -88,7 +88,6 @@
= render_if_exists "projects/home_mirror" = render_if_exists "projects/home_mirror"
- if @project.badges.present? - if @project.badges.present?
= cache_if(cache_enabled, [@project, :badges], expires_in: 1.day) do
.project-badges.mb-2 .project-badges.mb-2
- @project.badges.each do |badge| - @project.badges.each do |badge|
%a.gl-mr-3{ href: badge.rendered_link_url(@project), %a.gl-mr-3{ href: badge.rendered_link_url(@project),
......
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