MediaHelper: cache failed URLs for 15 minutes to prevent excessive retries
This commit is contained in:
parent
f775a1931b
commit
741f22bfe0
3 changed files with 33 additions and 18 deletions
|
|
@ -156,6 +156,7 @@ defmodule Pleroma.Application do
|
|||
build_cachex("web_resp", limit: 2500),
|
||||
build_cachex("emoji_packs", expiration: emoji_packs_expiration(), limit: 10),
|
||||
build_cachex("failed_proxy_url", limit: 2500),
|
||||
build_cachex("failed_media_helper_url", default_ttl: :timer.minutes(15), limit: 2_500),
|
||||
build_cachex("banned_urls", default_ttl: :timer.hours(24 * 30), limit: 5_000),
|
||||
build_cachex("chat_message_id_idempotency_key",
|
||||
expiration: chat_message_id_idempotency_key_expiration(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue