1
0
Fork 1
mirror of https://akkoma.dev/AkkomaGang/akkoma.git synced 2024-11-18 10:59:17 +00:00

Set ttl_interval to the seconds_valid time

This commit is contained in:
vaartis 2018-12-27 07:42:03 +00:00
parent 448af3601a
commit 708a228919

View file

@ -30,7 +30,7 @@ def start(_type, _args) 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