X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=lib%2Fpleroma%2Fapplication.ex;h=6267d0695b59ce9b5b59ed5941f09c7addf2fa82;hb=8141024259ee4bebd58d6ecd963f181aad420846;hp=e5bd17ced4c96a8f71f00981f1bb0ddb2b6c83bb;hpb=ef5033d7a7f744607235e974c7beb96b014c2b61;p=akkoma diff --git a/lib/pleroma/application.ex b/lib/pleroma/application.ex index e5bd17ced..6267d0695 100644 --- a/lib/pleroma/application.ex +++ b/lib/pleroma/application.ex @@ -14,10 +14,11 @@ defmodule Pleroma.Application do supervisor(Pleroma.Web.Endpoint, []), # Start your own worker by calling: Pleroma.Worker.start_link(arg1, arg2, arg3) # worker(Pleroma.Worker, [arg1, arg2, arg3]), - supervisor(ConCache, [[ - ttl_check: :timer.seconds(1), - ttl: :timer.seconds(5) - ], [name: :users]]) + worker(Cachex, [:user_cache, [ + default_ttl: 25000, + ttl_interval: 1000, + limit: 2500 + ]]) ] # See http://elixir-lang.org/docs/stable/elixir/Supervisor.html