add missing caches to the main cache sweep command (#2891)

This commit is contained in:
kim 2024-05-02 14:09:59 +01:00 committed by GitHub
parent ebec95a522
commit a840f4d49d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -125,8 +125,11 @@ func (c *Caches) Sweep(threshold float64) {
c.GTS.AccountNote.Trim(threshold) c.GTS.AccountNote.Trim(threshold)
c.GTS.AccountSettings.Trim(threshold) c.GTS.AccountSettings.Trim(threshold)
c.GTS.AccountStats.Trim(threshold) c.GTS.AccountStats.Trim(threshold)
c.GTS.Application.Trim(threshold)
c.GTS.Block.Trim(threshold) c.GTS.Block.Trim(threshold)
c.GTS.BlockIDs.Trim(threshold) c.GTS.BlockIDs.Trim(threshold)
c.GTS.BoostOfIDs.Trim(threshold)
c.GTS.Client.Trim(threshold)
c.GTS.Emoji.Trim(threshold) c.GTS.Emoji.Trim(threshold)
c.GTS.EmojiCategory.Trim(threshold) c.GTS.EmojiCategory.Trim(threshold)
c.GTS.Filter.Trim(threshold) c.GTS.Filter.Trim(threshold)
@ -136,6 +139,7 @@ func (c *Caches) Sweep(threshold float64) {
c.GTS.FollowIDs.Trim(threshold) c.GTS.FollowIDs.Trim(threshold)
c.GTS.FollowRequest.Trim(threshold) c.GTS.FollowRequest.Trim(threshold)
c.GTS.FollowRequestIDs.Trim(threshold) c.GTS.FollowRequestIDs.Trim(threshold)
c.GTS.InReplyToIDs.Trim(threshold)
c.GTS.Instance.Trim(threshold) c.GTS.Instance.Trim(threshold)
c.GTS.List.Trim(threshold) c.GTS.List.Trim(threshold)
c.GTS.ListEntry.Trim(threshold) c.GTS.ListEntry.Trim(threshold)
@ -145,11 +149,15 @@ func (c *Caches) Sweep(threshold float64) {
c.GTS.Move.Trim(threshold) c.GTS.Move.Trim(threshold)
c.GTS.Notification.Trim(threshold) c.GTS.Notification.Trim(threshold)
c.GTS.Poll.Trim(threshold) c.GTS.Poll.Trim(threshold)
c.GTS.PollVote.Trim(threshold)
c.GTS.PollVoteIDs.Trim(threshold)
c.GTS.Report.Trim(threshold) c.GTS.Report.Trim(threshold)
c.GTS.Status.Trim(threshold) c.GTS.Status.Trim(threshold)
c.GTS.StatusFave.Trim(threshold) c.GTS.StatusFave.Trim(threshold)
c.GTS.StatusFaveIDs.Trim(threshold)
c.GTS.Tag.Trim(threshold) c.GTS.Tag.Trim(threshold)
c.GTS.ThreadMute.Trim(threshold) c.GTS.ThreadMute.Trim(threshold)
c.GTS.Token.Trim(threshold)
c.GTS.Tombstone.Trim(threshold) c.GTS.Tombstone.Trim(threshold)
c.GTS.User.Trim(threshold) c.GTS.User.Trim(threshold)
c.Visibility.Trim(threshold) c.Visibility.Trim(threshold)