rich media: use cachex to avoid flooding remote servers

This commit is contained in:
William Pitcock 2019-01-04 23:23:47 +00:00
commit 0964c207eb
2 changed files with 17 additions and 2 deletions

View file

@ -63,6 +63,17 @@ defmodule Pleroma.Application do
],
id: :cachex_object
),
worker(
Cachex,
[
:rich_media_cache,
[
default_ttl: :timer.minutes(120),
limit: 5000
]
],
id: :cachex_rich_media
),
worker(
Cachex,
[