From a840f4d49d7d8e6957f1f848e17f4fcc06088412 Mon Sep 17 00:00:00 2001 From: kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com> Date: Thu, 2 May 2024 14:09:59 +0100 Subject: [PATCH] add missing caches to the main cache sweep command (#2891) --- internal/cache/cache.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/internal/cache/cache.go b/internal/cache/cache.go index 2e5e2c2dd..2c15d836d 100644 --- a/internal/cache/cache.go +++ b/internal/cache/cache.go @@ -125,8 +125,11 @@ func (c *Caches) Sweep(threshold float64) { c.GTS.AccountNote.Trim(threshold) c.GTS.AccountSettings.Trim(threshold) c.GTS.AccountStats.Trim(threshold) + c.GTS.Application.Trim(threshold) c.GTS.Block.Trim(threshold) c.GTS.BlockIDs.Trim(threshold) + c.GTS.BoostOfIDs.Trim(threshold) + c.GTS.Client.Trim(threshold) c.GTS.Emoji.Trim(threshold) c.GTS.EmojiCategory.Trim(threshold) c.GTS.Filter.Trim(threshold) @@ -136,6 +139,7 @@ func (c *Caches) Sweep(threshold float64) { c.GTS.FollowIDs.Trim(threshold) c.GTS.FollowRequest.Trim(threshold) c.GTS.FollowRequestIDs.Trim(threshold) + c.GTS.InReplyToIDs.Trim(threshold) c.GTS.Instance.Trim(threshold) c.GTS.List.Trim(threshold) c.GTS.ListEntry.Trim(threshold) @@ -145,11 +149,15 @@ func (c *Caches) Sweep(threshold float64) { c.GTS.Move.Trim(threshold) c.GTS.Notification.Trim(threshold) c.GTS.Poll.Trim(threshold) + c.GTS.PollVote.Trim(threshold) + c.GTS.PollVoteIDs.Trim(threshold) c.GTS.Report.Trim(threshold) c.GTS.Status.Trim(threshold) c.GTS.StatusFave.Trim(threshold) + c.GTS.StatusFaveIDs.Trim(threshold) c.GTS.Tag.Trim(threshold) c.GTS.ThreadMute.Trim(threshold) + c.GTS.Token.Trim(threshold) c.GTS.Tombstone.Trim(threshold) c.GTS.User.Trim(threshold) c.Visibility.Trim(threshold)