diff --git a/config/config.exs b/config/config.exs index 62c3134b8..055bfc543 100644 --- a/config/config.exs +++ b/config/config.exs @@ -35,8 +35,4 @@ config :plausible, Plausible.Repo, connect_timeout: 300_000, handshake_timeout: 300_000 -config :plausible, :user_agent_cache, - limit: 1000, - stats: false - import_config "#{config_env()}.exs" diff --git a/lib/plausible/application.ex b/lib/plausible/application.ex index 230459775..df2648165 100644 --- a/lib/plausible/application.ex +++ b/lib/plausible/application.ex @@ -28,7 +28,6 @@ defmodule Plausible.Application do opts = [strategy: :one_for_one, name: Plausible.Supervisor] setup_sentry() - setup_cache_stats() OpentelemetryPhoenix.setup() OpentelemetryEcto.setup([:plausible, :repo]) OpentelemetryEcto.setup([:plausible, :clickhouse_repo]) @@ -60,14 +59,6 @@ defmodule Plausible.Application do end end - defp setup_cache_stats() do - conf = Application.get_env(:plausible, :user_agent_cache) - - if conf[:stats] do - :timer.apply_interval(1000 * 10, Plausible.Application, :report_cache_stats, []) - end - end - def setup_sentry() do Logger.add_backend(Sentry.LoggerBackend)