Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

fix: increase PostHog identify dedup TTL from 10 minutes to 24 hours

Devin AIbd9d66d4ec2a
diff --git a/backend/src/keystore/keystore.ts b/backend/src/keystore/keystore.ts
index a5e780d960..e8e1ae886c 100644
--- a/backend/src/keystore/keystore.ts
+++ b/backend/src/keystore/keystore.ts
@@ -113,7 +113,7 @@ export const KeyStoreTtls = {
MfaSessionInSeconds: 300, // 5 minutes
WebAuthnChallengeInSeconds: 300, // 5 minutes
ProjectSSEConnectionTtlSeconds: 180, // Must be > heartbeat interval (60s) * 2
- TelemetryIdentifyIdentityInSeconds: 600 // 10 minutes
+ TelemetryIdentifyIdentityInSeconds: 86400 // 24 hours
};
type TDeleteItems = {
diff --git a/backend/src/services/telemetry/telemetry-service.ts b/backend/src/services/telemetry/telemetry-service.ts
index 317af61cfb..8af0f523a6 100644
--- a/backend/src/services/telemetry/telemetry-service.ts
+++ b/backend/src/services/telemetry/telemetry-service.ts
@@ -421,7 +421,7 @@ To opt into telemetry, you can set "TELEMETRY_ENABLED=true" within the environme
};
const TELEMETRY_IDENTIFY_CACHE_KEY_PREFIX = "telemetry-identify";
- const TELEMETRY_IDENTIFY_CACHE_TTL = 600; // 10 minutes
+ const TELEMETRY_IDENTIFY_CACHE_TTL = 86400; // 24 hours
// In-memory fallback dedup set to limit blast radius during Redis outages
const inMemoryIdentifyDedup = new Set<string>();