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,12 +88,11 @@
= render_if_exists "projects/home_mirror"
- if @project.badges.present?
= cache_if(cache_enabled, [@project, :badges], expires_in: 1.day) do
.project-badges.mb-2
- @project.badges.each do |badge|
%a.gl-mr-3{ href: badge.rendered_link_url(@project),
target: '_blank',
rel: 'noopener noreferrer' }>
%img.project-badge{ src: badge.rendered_image_url(@project),
'aria-hidden': true,
alt: 'Project badge' }>
.project-badges.mb-2
- @project.badges.each do |badge|
%a.gl-mr-3{ href: badge.rendered_link_url(@project),
target: '_blank',
rel: 'noopener noreferrer' }>
%img.project-badge{ src: badge.rendered_image_url(@project),
'aria-hidden': true,
alt: 'Project badge' }>
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