Skip to content

Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.

Add R/W concurrency ets options to sessions cache tables (#5080)

hq16ff90b8645f0
diff --git a/lib/plausible/application.ex b/lib/plausible/application.ex
index 8b7b9401ee..bad2d85301 100644
--- a/lib/plausible/application.ex
+++ b/lib/plausible/application.ex
@@ -33,7 +33,8 @@ defmodule Plausible.Application do
),
Plausible.Cache.Adapter.child_specs(:sessions, :cache_sessions,
ttl_check_interval: :timer.seconds(10),
- global_ttl: :timer.minutes(30)
+ global_ttl: :timer.minutes(30),
+ ets_options: [read_concurrency: true, write_concurrency: true]
),
warmed_cache(Plausible.Site.Cache,
adapter_opts: [ttl_check_interval: false],