From eeaff6de2c85f60a0c05de9437ad9fcefcf27a74 Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Sat, 12 Nov 2022 00:54:02 +0100 Subject: [PATCH] explain why we cache symlinc and not content --- server/gitea/client.go | 1 + 1 file changed, 1 insertion(+) diff --git a/server/gitea/client.go b/server/gitea/client.go index 3d7fd44..79e3c04 100644 --- a/server/gitea/client.go +++ b/server/gitea/client.go @@ -137,6 +137,7 @@ func (client *Client) ServeRawContent(targetOwner, targetRepo, ref, resource str } linkDest := strings.TrimSpace(string(linkDestBytes)) + // we store symlink not content to reduce duplicates in cache if err := client.responseCache.Set(cacheKey, FileResponse{ Exists: true, IsSymlink: true,