diff --git a/sdk/list.go b/sdk/list.go index 7e7976a..7fe11be 100644 --- a/sdk/list.go +++ b/sdk/list.go @@ -61,6 +61,7 @@ func fetchGenericList[I TagItemWithValue]( items := parseItemsFromEventTags(events[0], parseTag) v.Event = events[0] v.Items = items + cache.SetWithTTL(pubkey, v, time.Hour*6) valueWasJustCached[lockIdx] = true return v, true } @@ -73,6 +74,7 @@ func fetchGenericList[I TagItemWithValue]( v.Items = items sys.StoreRelay.Publish(ctx, *evt) } + cache.SetWithTTL(pubkey, v, time.Hour*6) valueWasJustCached[lockIdx] = true }