From 562a9b1a87ff0880a5a60f1a01d79d09bbaf7ea7 Mon Sep 17 00:00:00 2001
From: Douwe Maan <douwe@gitlab.com>
Date: Fri, 10 Apr 2015 16:10:25 +0200
Subject: [PATCH] Bust group page project list cache when namespace name or
 path changes.

---
 CHANGELOG                           | 3 ++-
 app/views/shared/_project.html.haml | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/CHANGELOG b/CHANGELOG
index 38a4117eb80..c06b44e657b 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -66,7 +66,8 @@ v 7.10.0 (unreleased)
   - Fixed link paths for HTTP and SSH on the admin project view (Jeremy Maziarz)
   - Fix and improve help rendering (Sullivan Sénéchal)
   - Fix final line in EmailsOnPush email diff being rendered as error.
-  - Authometic setup GitLab CI project for forks if origin project has GitLab CI enabled
+  - Automatically setup GitLab CI project for forks if origin project has GitLab CI enabled
+  - Bust group page project list cache when namespace name or path changes.
 
 v 7.9.3
   - Contains no changes
diff --git a/app/views/shared/_project.html.haml b/app/views/shared/_project.html.haml
index 8746970c239..722a7f7ce0f 100644
--- a/app/views/shared/_project.html.haml
+++ b/app/views/shared/_project.html.haml
@@ -1,4 +1,4 @@
-= cache [project, controller.controller_name, controller.action_name] do
+= cache [project.namespace, project, controller.controller_name, controller.action_name] do
   = link_to project_path(project), class: dom_class(project) do
     - if avatar
       .dash-project-avatar
-- 
GitLab