summaryrefslogtreecommitdiff
path: root/internal/cache/cache.go
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2024-07-11 16:44:29 +0200
committerLibravatar GitHub <noreply@github.com>2024-07-11 15:44:29 +0100
commit5bc567196bf2204272950c525e8592e56057c3bd (patch)
tree24aec5e75d2a0208505da16ee2c55efd887d3e25 /internal/cache/cache.go
parent[bugfix] Don't throw error when parent statuses are missing (#2011) (#3088) (diff)
downloadgotosocial-5bc567196bf2204272950c525e8592e56057c3bd.tar.xz
[chore] Add interaction policy gtsmodels (#3075)
* [chore] introduce interaction policy gts models * update migration a smidge * fix copy paste typo * update migration * use int for InteractionType
Diffstat (limited to 'internal/cache/cache.go')
-rw-r--r--internal/cache/cache.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/cache/cache.go b/internal/cache/cache.go
index bb910f3e6..5a8a92ca3 100644
--- a/internal/cache/cache.go
+++ b/internal/cache/cache.go
@@ -73,6 +73,7 @@ func (c *Caches) Init() {
c.initFollowRequestIDs()
c.initInReplyToIDs()
c.initInstance()
+ c.initInteractionApproval()
c.initList()
c.initListEntry()
c.initMarker()
@@ -145,6 +146,7 @@ func (c *Caches) Sweep(threshold float64) {
c.GTS.FollowRequestIDs.Trim(threshold)
c.GTS.InReplyToIDs.Trim(threshold)
c.GTS.Instance.Trim(threshold)
+ c.GTS.InteractionApproval.Trim(threshold)
c.GTS.List.Trim(threshold)
c.GTS.ListEntry.Trim(threshold)
c.GTS.Marker.Trim(threshold)