Commit cc553ed8 authored by Sean McGivern's avatar Sean McGivern

Merge branch 'rd-33733-showing-created-date-instead-of-updated-date-in-project-lists' into 'master'

Invalidate cache with project details when repository is updated

Closes #33733

See merge request gitlab-org/gitlab-ce!19774
parents 6c32093d 6a0178d8
......@@ -171,6 +171,7 @@ module ProjectsHelper
key = [
project.route.cache_key,
project.cache_key,
project.last_activity_date,
controller.controller_name,
controller.action_name,
Gitlab::CurrentSettings.cache_key,
......
---
title: Invalidate cache with project details when repository is updated
merge_request: 19774
author:
type: fixed
......@@ -90,6 +90,10 @@ describe ProjectsHelper do
expect(helper.project_list_cache_key(project)).to include(project.cache_key)
end
it "includes the last activity date" do
expect(helper.project_list_cache_key(project)).to include(project.last_activity_date)
end
it "includes the controller name" do
expect(helper.controller).to receive(:controller_name).and_return("testcontroller")
......
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