From 73c21d0195a10b9c20a8a73f60a3e4605aa2c974 Mon Sep 17 00:00:00 2001
From: Moritz Marquardt <git@momar.de>
Date: Sat, 20 Nov 2021 20:34:12 +0100
Subject: [PATCH] Reduce file cache timeout as it doesn't seem to do much

---
 handler.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/handler.go b/handler.go
index 662809a..086d249 100644
--- a/handler.go
+++ b/handler.go
@@ -313,7 +313,7 @@ type branchTimestamp struct {
 
 // FileCacheTimeout specifies the timeout for the file content cache - you might want to make this quite long, depending
 // on your available memory.
-var FileCacheTimeout = 60*time.Minute
+var FileCacheTimeout = 5*time.Minute
 // FileCacheSizeLimit limits the maximum file size that will be cached, and is set to 1 MB by default.
 var FileCacheSizeLimit = 1024 * 1024
 // fileResponseCache stores responses from the Gitea server