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
Set 30 minute session expiration
Uku Taht66225a69e42a
diff --git a/lib/plausible/session/cache_store.ex b/lib/plausible/session/cache_store.exindex 3093a1acb7..940d119ce0 100644--- a/lib/plausible/session/cache_store.ex+++ b/lib/plausible/session/cache_store.ex@@ -35,7 +35,7 @@ defmodule Plausible.Session.CacheStore dodefp persist_session(session) dokey = {session.domain, session.user_id}- Cachex.put(:sessions, key, session, ttl: session_length_ms())+ Cachex.put(:sessions, key, session, ttl: :timer.minutes(30))sessionend@@ -121,7 +121,4 @@ defmodule Plausible.Session.CacheStore dostart: event.timestamp}end-- defp session_length_ms(),- do: Application.get_env(:plausible, :session_length_minutes) * 60 * 100end