From 2c19358c3ad54d53f11865655b9c9bf1daa26d7f Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Thu, 26 Sep 2024 21:08:13 -0300 Subject: [PATCH] sdk: I am crazy and had removed the actual cache.Set() calls. --- sdk/list.go | 2 ++ 1 file changed, 2 insertions(+) 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 }