diff options
author | 2024-03-06 11:18:57 +0100 | |
---|---|---|
committer | 2024-03-06 11:18:57 +0100 | |
commit | b22e213e15a7bc64773e626d76305bd860e6301c (patch) | |
tree | bdc0f14481b144f8e4e45a380ea3b7cf78490041 /internal/cache/cache.go | |
parent | [feature] Filters v1 (#2594) (diff) | |
download | gotosocial-b22e213e15a7bc64773e626d76305bd860e6301c.tar.xz |
[feature/chore] Add Move database functions + cache (#2647)
* [feature/chore] Add Move database functions + cache
* add move mem ratio to envparsing.sh
* update comment
Diffstat (limited to 'internal/cache/cache.go')
-rw-r--r-- | internal/cache/cache.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/cache/cache.go b/internal/cache/cache.go index 9b70a565c..e2fe43a1f 100644 --- a/internal/cache/cache.go +++ b/internal/cache/cache.go @@ -75,6 +75,7 @@ func (c *Caches) Init() { c.initMarker() c.initMedia() c.initMention() + c.initMove() c.initNotification() c.initPoll() c.initPollVote() @@ -135,6 +136,7 @@ func (c *Caches) Sweep(threshold float64) { c.GTS.Marker.Trim(threshold) c.GTS.Media.Trim(threshold) c.GTS.Mention.Trim(threshold) + c.GTS.Move.Trim(threshold) c.GTS.Notification.Trim(threshold) c.GTS.Poll.Trim(threshold) c.GTS.Report.Trim(threshold) |