mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2025-02-23 12:23:58 +00:00
Reduce file cache timeout as it doesn't seem to do much
This commit is contained in:
parent
b19a5ecc1d
commit
73c21d0195
@ -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
|
// FileCacheTimeout specifies the timeout for the file content cache - you might want to make this quite long, depending
|
||||||
// on your available memory.
|
// 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.
|
// FileCacheSizeLimit limits the maximum file size that will be cached, and is set to 1 MB by default.
|
||||||
var FileCacheSizeLimit = 1024 * 1024
|
var FileCacheSizeLimit = 1024 * 1024
|
||||||
// fileResponseCache stores responses from the Gitea server
|
// fileResponseCache stores responses from the Gitea server
|
||||||
|
Loading…
x
Reference in New Issue
Block a user