We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f463c03 commit d1ba5dbCopy full SHA for d1ba5db
apps/web/lib/tinybird/record-click.ts
@@ -166,11 +166,9 @@ export async function recordClick({
166
};
167
168
if (shouldCacheClickId) {
169
- // cache the click ID and its corresponding click data in Redis for 1 day
+ // cache the click ID and its corresponding click data in Redis for 5 minutes
170
// we're doing this because ingested click events are not available immediately in Tinybird
171
- await redis.set(`clickIdCache:${clickId}`, clickData, {
172
- ex: 60 * 60 * 24, // cache for 1 day
173
- });
+ await redis.set(`clickIdCache:${clickId}`, clickData, { ex: 60 * 5 });
174
}
175
176
waitUntil(
0 commit comments