diff options
author | 2024-05-02 14:09:59 +0100 | |
---|---|---|
committer | 2024-05-02 14:09:59 +0100 | |
commit | a840f4d49d7d8e6957f1f848e17f4fcc06088412 (patch) | |
tree | c9eca0f0f617d6ab61c900b2ffb77261961bace6 /internal/cache | |
parent | [bugfix] Lock when checking/creating notifs to avoid race (#2890) (diff) | |
download | gotosocial-a840f4d49d7d8e6957f1f848e17f4fcc06088412.tar.xz |
add missing caches to the main cache sweep command (#2891)
Diffstat (limited to 'internal/cache')
-rw-r--r-- | internal/cache/cache.go | 8 |
1 files changed, 8 insertions, 0 deletions
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) |