mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-01 04:32:24 -05:00
remove old timeline package, add local timeline cache
This commit is contained in:
parent
4803ae6bad
commit
566e2b1d38
21 changed files with 105 additions and 2943 deletions
2
internal/cache/cache.go
vendored
2
internal/cache/cache.go
vendored
|
|
@ -98,6 +98,7 @@ func (c *Caches) Init() {
|
|||
c.initListIDs()
|
||||
c.initListedIDs()
|
||||
c.initListTimelines()
|
||||
c.initLocalTimeline()
|
||||
c.initMarker()
|
||||
c.initMedia()
|
||||
c.initMention()
|
||||
|
|
@ -216,6 +217,7 @@ func (c *Caches) Sweep(threshold float64) {
|
|||
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