summaryrefslogtreecommitdiff
path: root/internal/config/defaults.go
diff options
context:
space:
mode:
authorLibravatar kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com>2023-07-31 11:25:29 +0100
committerLibravatar GitHub <noreply@github.com>2023-07-31 11:25:29 +0100
commited2477ebea4c3ceec5949821f4950db9669a4a15 (patch)
tree1038d7abdfc787ddfc1febb326fd38775b189b85 /internal/config/defaults.go
parent[bugfix/frontend] Decode URI component domain before showing on frontend (#2043) (diff)
downloadgotosocial-ed2477ebea4c3ceec5949821f4950db9669a4a15.tar.xz
[performance] cache follow, follow request and block ID lists (#2027)
Diffstat (limited to 'internal/config/defaults.go')
-rw-r--r--internal/config/defaults.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/internal/config/defaults.go b/internal/config/defaults.go
index ee20fb6a7..cb37838c1 100644
--- a/internal/config/defaults.go
+++ b/internal/config/defaults.go
@@ -139,6 +139,10 @@ var Defaults = Configuration{
BlockTTL: time.Minute * 30,
BlockSweepFreq: time.Minute,
+ BlockIDsMaxSize: 500,
+ BlockIDsTTL: time.Minute * 30,
+ BlockIDsSweepFreq: time.Minute,
+
DomainBlockMaxSize: 2000,
DomainBlockTTL: time.Hour * 24,
DomainBlockSweepFreq: time.Minute,
@@ -155,10 +159,18 @@ var Defaults = Configuration{
FollowTTL: time.Minute * 30,
FollowSweepFreq: time.Minute,
+ FollowIDsMaxSize: 500,
+ FollowIDsTTL: time.Minute * 30,
+ FollowIDsSweepFreq: time.Minute,
+
FollowRequestMaxSize: 2000,
FollowRequestTTL: time.Minute * 30,
FollowRequestSweepFreq: time.Minute,
+ FollowRequestIDsMaxSize: 500,
+ FollowRequestIDsTTL: time.Minute * 30,
+ FollowRequestIDsSweepFreq: time.Minute,
+
InstanceMaxSize: 2000,
InstanceTTL: time.Minute * 30,
InstanceSweepFreq: time.Minute,