mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2024-11-18 10:29:43 +00:00
Reduce file cache timeout as it doesn't seem to do much
This commit is contained in:
parent
b19a5ecc1d
commit
73c21d0195
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue