[PATCH 05/07] Invalidate cache if user name changes
The Ranger
ranger at risk.ee
Fri Nov 27 21:46:37 CET 2015
---
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
More information about the CGit
mailing list