diff options
author | 2024-03-06 11:18:57 +0100 | |
---|---|---|
committer | 2024-03-06 11:18:57 +0100 | |
commit | b22e213e15a7bc64773e626d76305bd860e6301c (patch) | |
tree | bdc0f14481b144f8e4e45a380ea3b7cf78490041 /internal/cache/invalidate.go | |
parent | [feature] Filters v1 (#2594) (diff) | |
download | gotosocial-b22e213e15a7bc64773e626d76305bd860e6301c.tar.xz |
[feature/chore] Add Move database functions + cache (#2647)
* [feature/chore] Add Move database functions + cache
* add move mem ratio to envparsing.sh
* update comment
Diffstat (limited to 'internal/cache/invalidate.go')
-rw-r--r-- | internal/cache/invalidate.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/cache/invalidate.go b/internal/cache/invalidate.go index e7dfa9e8a..a7c4a1552 100644 --- a/internal/cache/invalidate.go +++ b/internal/cache/invalidate.go @@ -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) { |