:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
chore(web-analytics): lower warming selection cache TTL to 2h (#101390)
Lucas Ricoy0decfb7fa3f8
diff --git a/posthog/settings/dynamic_settings.py b/posthog/settings/dynamic_settings.pyindex 23a075f461a6..561823875d5d 100644--- a/posthog/settings/dynamic_settings.py+++ b/posthog/settings/dynamic_settings.py@@ -341,9 +341,11 @@ CONSTANCE_CONFIG = {int,),"WEB_ANALYTICS_WARMING_SELECTION_TTL_SECONDS": (- get_from_env("WEB_ANALYTICS_WARMING_SELECTION_TTL_SECONDS", default=21600, type_cast=int),+ get_from_env("WEB_ANALYTICS_WARMING_SELECTION_TTL_SECONDS", default=7200, type_cast=int),"How long the fleet-wide demand selection is cached in object storage. Warming replays the "- "cached shape list every run; the expensive query_log scan only re-runs once this expires (default 6h).",+ "cached shape list every run; the expensive query_log scan only re-runs once this expires (default 2h). "+ "Shorter means a newly-hot shape enters the warm set sooner, at the cost of re-running the query_log "+ "scan more often.",int,),"WEB_ANALYTICS_WARMING_MIN_QUERY_COUNT": (