pages-server/server/upstream/const.go

17 lines
587 B
Go
Raw Normal View History

2021-12-05 13:47:33 +00:00
package upstream
import "time"
2021-12-05 15:24:26 +00:00
// fileCacheTimeout specifies the timeout for the file content cache - you might want to make this quite long, depending
2021-12-05 13:47:33 +00:00
// on your available memory.
// TODO: move as option into cache interface
2021-12-05 15:24:26 +00:00
var fileCacheTimeout = 5 * time.Minute
2021-12-05 13:47:33 +00:00
2021-12-05 15:24:26 +00:00
// fileCacheSizeLimit limits the maximum file size that will be cached, and is set to 1 MB by default.
var fileCacheSizeLimit = 1024 * 1024
2021-12-05 14:21:05 +00:00
2021-12-05 15:24:26 +00:00
// canonicalDomainCacheTimeout specifies the timeout for the canonical domain cache.
var canonicalDomainCacheTimeout = 15 * time.Minute
const canonicalDomainConfig = ".domains"