diff --git a/lib/teiserver/application.ex b/lib/teiserver/application.ex index d342fc258..0e14f2fe4 100644 --- a/lib/teiserver/application.ex +++ b/lib/teiserver/application.ex @@ -35,6 +35,7 @@ defmodule Teiserver.Application do # Store refers to something that is typically only updated at startup # and should not be clustered + concache_sup(:lists), concache_sup(:codes), concache_sup(:account_user_cache), concache_sup(:account_user_cache_bang), diff --git a/lib/teiserver/data/matchmaking_cache.ex b/lib/teiserver/data/matchmaking_cache.ex index cd4545751..2fc96c990 100644 --- a/lib/teiserver/data/matchmaking_cache.ex +++ b/lib/teiserver/data/matchmaking_cache.ex @@ -9,7 +9,6 @@ defmodule Teiserver.Data.MatchmakingCache do def start_link(opts) do with {:ok, sup} <- Supervisor.start_link(__MODULE__, :ok, opts) do Teiserver.cache_put(:lists, :rooms, []) - Teiserver.cache_put(:lists, :lobby_policies, []) Teiserver.Data.Matchmaking.pre_cache_queues() {:ok, sup} @@ -19,8 +18,7 @@ defmodule Teiserver.Data.MatchmakingCache do @impl true def init(:ok) do children = [ - CacheHelper.concache_perm_sup(:teiserver_queues), - CacheHelper.concache_perm_sup(:lists) + CacheHelper.concache_perm_sup(:teiserver_queues) ] Supervisor.init(children, strategy: :one_for_all) diff --git a/lib/teiserver/game/libs/lobby_policy_cache.ex b/lib/teiserver/game/libs/lobby_policy_cache.ex index 79349e2ea..27974b4d6 100644 --- a/lib/teiserver/game/libs/lobby_policy_cache.ex +++ b/lib/teiserver/game/libs/lobby_policy_cache.ex @@ -8,6 +8,7 @@ defmodule Teiserver.Data.LobbyPolicyCache do def start_link(opts) do with {:ok, sup} <- Supervisor.start_link(__MODULE__, :ok, opts) do + Teiserver.cache_put(:lists, :lobby_policies, []) Teiserver.Game.pre_cache_policies() {:ok, sup} end