The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Revert link cache bug
Steven Teybb7512a637ca
diff --git a/apps/web/lib/api/links/cache.ts b/apps/web/lib/api/links/cache.tsindex 422eff1937..f6b63dbd7f 100644--- a/apps/web/lib/api/links/cache.ts+++ b/apps/web/lib/api/links/cache.ts@@ -51,7 +51,9 @@ class LinkCache {}async get({ domain, key }: Pick<LinkProps, "domain" | "key">) {- return await redis.get<RedisLinkProps>(this._createKey({ domain, key }));+ // here we use linkcache:${domain}:${key} instead of this._createKey({ domain, key })+ // because the key can either be case-sensitive or case-insensitive depending on the domain+ return await redis.get<RedisLinkProps>(`linkcache:${domain}:${key}`);}async delete({ domain, key }: Pick<LinkProps, "domain" | "key">) {