PostHog/posthog

Feature Request: Improve caching for site apps to reduce the delay in updating

Opened this issue · 0 comments

Feature request

Is your feature request related to a problem?

The site apps architecture is designed for performance with heavy caching, which explains the delay between configuration changes and client updates. The delay typically ranges from minutes to hours depending on cache TTLs and CDN propagation.

Describe the solution you'd like

While it may be tricky to reduce the delay without increasing costs for PostHog and hence users, we're tracking reports here and hoping to start a discussion about the options.

Describe alternatives you've considered

You can edit site app source code to include some heuristics on when to show and hide them. For example, for the notification bar, you could play around with localStorage like the code already does, so that you fine tune when to show and hide it.

Additional context

From: https://posthoghelp.zendesk.com/agent/tickets/38230

Debug info

Kind: bug

Target area: toolbar

Report event: http://go/ticketByUUID/9004bf7c-4447-48e5-bbd3-cd5896ee2168

Session: https://us.posthog.com/project/sTMFPsFhdP1Ssg/replay/01995fee-aefd-7138-8e89-0f7f2f332928?t=1693

Exceptions: https://us.posthog.com/project/2/error_tracking?filterGroup=%7B%22type%22%3A%22AND%22%2C%22values%22%3A%5B%7B%22type%22%3A%22AND%22%2C%22values%22%3A%5B%7B%22key%22%3A%22%24session_id%22%2C%22value%22%3A%5B%2201995fee-aefd-7138-8e89-0f7f2f332928%22%5D%2C%22operator%22%3A%22exact%22%2C%22type%22%3A%22event%22%7D%5D%7D%5D%7D

Location: https://us.posthog.com/project/100248/functions/01995f41-af0a-0000-1013-b23f3f7e7238

Persons-on-events mode for project: person_id_override_properties_on_events