Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.
TypeScript analyticsanalytics-dashboardclickhouseelixirgoogle-analyticsmarketingopen-source-analyticsphoenixplausible-analyticspostgresqlprivacyprivacy-friendlyself-hostedsimple-analyticsstatisticstailwindcssweb-analyticswebsite-analyticswebsite-statswebsite-tracking
Fix race condition merging session data when cache returns (#4579)
hq1f979ca938a46
diff --git a/lib/plausible/session/cache_store.ex b/lib/plausible/session/cache_store.exindex e446bfd7b9..373c0b6106 100644--- a/lib/plausible/session/cache_store.ex+++ b/lib/plausible/session/cache_store.ex@@ -52,6 +52,7 @@ defmodule Plausible.Session.CacheStore dodefp persist_session(session) dokey = {session.site_id, session.user_id}Plausible.Cache.Adapter.put(:sessions, key, session, dirty?: true)+ sessionenddefp update_session(session, event) do