[prev in list] [next in list] [prev in thread] [next in thread]
List: cgit
Subject: [PATCH 05/07] Invalidate cache if user name changes
From: The Ranger <ranger () risk ! ee>
Date: 2015-11-27 20:47:01
Message-ID: 1448657221.357553.7297.nullmailer () cypher ! risk ! ee
[Download RAW message or body]
---
cgit.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/cgit.c b/cgit.c
index 0a6473d..6521aa5 100644
--- a/cgit.c
+++ b/cgit.c
@@ -888,6 +888,8 @@ static void process_cached_repolist(const char *path)
hash = hash_str(path);
if (ctx.cfg.project_list)
hash += hash_str(ctx.cfg.project_list);
+ if (ctx.env.remote_user)
+ hash += hash_str(ctx.env.remote_user);
strbuf_addf(&cached_rc, "%s/rc-%8lx", ctx.cfg.cache_root, hash);
if (stat(cached_rc.buf, &st)) {
--
2.1.4
_______________________________________________
CGit mailing list
CGit@lists.zx2c4.com
http://lists.zx2c4.com/mailman/listinfo/cgit
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic