Reduce file cache timeout as it doesn't seem to do much

This commit is contained in:
Moritz Marquardt 2021-11-20 20:34:12 +01:00
parent b19a5ecc1d
commit 73c21d0195
No known key found for this signature in database
GPG Key ID: D5788327BEE388B6
1 changed files with 1 additions and 1 deletions

View File

@ -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