Commit 270e15f1 authored by Sean McGivern's avatar Sean McGivern

Merge branch 'fix/gb/dashboard-commit-status-caching' into 'master'

Improve fragment caching rules at projects dashboard

Closes #28364

See merge request !9895
parents b3eda944 6bffc17f
......@@ -7,7 +7,7 @@
- show_last_commit_as_description = false unless local_assigns[:show_last_commit_as_description] == true && project.commit
- css_class += " no-description" if project.description.blank? && !show_last_commit_as_description
- cache_key = [project.namespace, project, controller.controller_name, controller.action_name, current_application_settings, 'v2.3']
- cache_key.push(project.commit.status) if project.commit.try(:status)
- cache_key.push(project.commit&.sha, project.commit&.status)
%li.project-row{ class: css_class }
= cache(cache_key) do
......
---
title: Resolve project pipeline status caching problem on dashboard
merge_request: 9895
author:
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