mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-18 13:53:01 -06:00
remove local / public caches (is out of scope for this work), share more timeline code
This commit is contained in:
parent
294e1a6bd8
commit
227d6edc3e
10 changed files with 256 additions and 180 deletions
4
internal/cache/cache.go
vendored
4
internal/cache/cache.go
vendored
|
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue