diff options
author | 2023-05-09 15:17:43 +0100 | |
---|---|---|
committer | 2023-05-09 16:17:43 +0200 | |
commit | 8275d70e38579128f0680ee4001a944907a3772a (patch) | |
tree | ce97c3f6609bcbc6d24c7423ef7c0247011e2122 /internal/cache/visibility.go | |
parent | [chore] tidy + update StatusToAPIStatus (#1754) (diff) | |
download | gotosocial-8275d70e38579128f0680ee4001a944907a3772a.tar.xz |
[bugfix] update go-cache version to support multi-keying (#1756)
* update go-cache version to support multi-keying
Signed-off-by: kim <grufwub@gmail.com>
* improved cache invalidation
Signed-off-by: kim <grufwub@gmail.com>
---------
Signed-off-by: kim <grufwub@gmail.com>
Diffstat (limited to 'internal/cache/visibility.go')
-rw-r--r-- | internal/cache/visibility.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/cache/visibility.go b/internal/cache/visibility.go index 8706a8015..fd481eedc 100644 --- a/internal/cache/visibility.go +++ b/internal/cache/visibility.go @@ -30,8 +30,8 @@ type VisibilityCache struct { // NOTE: the cache MUST NOT be in use anywhere, this is not thread-safe. func (c *VisibilityCache) Init() { c.Cache = result.New([]result.Lookup{ - {Name: "ItemID"}, - {Name: "RequesterID"}, + {Name: "ItemID", Multi: true}, + {Name: "RequesterID", Multi: true}, {Name: "Type.RequesterID.ItemID"}, }, func(v1 *CachedVisibility) *CachedVisibility { v2 := new(CachedVisibility) |