[feature/chore] Add Move database functions + cache (#2647)

* [feature/chore] Add Move database functions + cache

* add move mem ratio to envparsing.sh

* update comment
This commit is contained in:
tobi
2024-03-06 11:18:57 +01:00
committed by GitHub
parent 61a2b91f45
commit b22e213e15
17 changed files with 671 additions and 1 deletions

View File

@ -54,6 +54,10 @@ func (c *Caches) OnInvalidateAccount(account *gtsmodel.Account) {
// Invalidate this account's block lists.
c.GTS.BlockIDs.Invalidate(account.ID)
// Invalidate this account's Move(s).
c.GTS.Move.Invalidate("OriginURI", account.URI)
c.GTS.Move.Invalidate("TargetURI", account.URI)
}
func (c *Caches) OnInvalidateBlock(block *gtsmodel.Block) {