remove local / public caches (is out of scope for this work), share more timeline code

This commit is contained in:
kim 2025-04-03 13:51:47 +01:00
commit 227d6edc3e
10 changed files with 256 additions and 180 deletions

View file

@ -98,7 +98,6 @@ func (c *Caches) Init() {
c.initListIDs()
c.initListedIDs()
c.initListTimelines()
c.initLocalTimeline()
c.initMarker()
c.initMedia()
c.initMention()
@ -107,7 +106,6 @@ func (c *Caches) Init() {
c.initPoll()
c.initPollVote()
c.initPollVoteIDs()
c.initPublicTimeline()
c.initReport()
c.initSinBinStatus()
c.initStatus()
@ -216,8 +214,6 @@ func (c *Caches) Sweep(threshold float64) {
c.DB.UserMuteIDs.Trim(threshold)
c.Timelines.Home.Trim(threshold)
c.Timelines.List.Trim(threshold)
c.Timelines.Public.Trim(threshold)
c.Timelines.Local.Trim(threshold)
c.Visibility.Trim(threshold)
}