From 708a22891921d54c9c716ac250e75ae6a889eb7b Mon Sep 17 00:00:00 2001 From: vaartis Date: Thu, 27 Dec 2018 07:42:03 +0000 Subject: [PATCH] Set ttl_interval to the seconds_valid time --- lib/pleroma/application.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pleroma/application.ex b/lib/pleroma/application.ex index bdd0ee26f..8dbacf258 100644 --- a/lib/pleroma/application.ex +++ b/lib/pleroma/application.ex @@ -30,7 +30,7 @@ defmodule Pleroma.Application do [ :used_captcha_cache, [ - ttl_interval: :timer.seconds(60 * 2) + ttl_interval: :timer.seconds(Pleroma.Config.get!([Pleroma.Captcha, :seconds_valid])) ] ], id: :cachex_used_captcha_cache -- 2.45.2