mirror of
https://github.com/fallenbagel/jellyseerr.git
synced 2025-12-24 02:39:18 -05:00
feat: dns caching manager (#1294)
* feat(dns): implement dns caching * feat: simple implementation of dnscaching * feat: dynamic ttl which is revalidated while using stale dns cache This is done as tmdb ttl is very less like 40 seconds so to make sure any issues wont be caused due to cached dns (previously we were caching for 5 minutes no matter what ttl) * feat(dns): improve DNS cache with multi-strategy fallback system - multiple DNS resolution strategie - graceful fallbacks between IPv6 and IPv4 addresses - network error reporting in fetch fix - compatibility with cypress testing (I HOPE) * fix: typos * feat: dns cache stats in jobs & cache page (and cleanup) * feat(networksettings): cache dns off by default * feat: make dnsCache optional and enable-able through network settings * chore(i18n): extract translation keys * test(cypress): fix cypress testing * feat(dnscache): dns cache entries are now flushable * style(cypress): run prettier * chore(cypresssettings): git ignore cypress json settings * chore: ignore cypress/config/settings.json * fix(dnscache): use entry specific hits and misses not global * refactor: clean up console logs * fix(dnscache): fix miss counter * feat(dnscache): global stats * chore(i18n): extract translation keys * refactor: use date-fns for formatting age and remove useless code * refactor: remove cypress testing options in dnsCacheManager * refactor: remove console logs * refactor: removed useless condition when its always truthy * fix: remove FetchAPI-related code * fix: remove old ipv4first setting * refactor: use our own dns-caching package instead * fix: correct dns-caching module configuration * fix: correct dns-caching module configuration * fix: remove useless lru-cache dependency * fix: update dns-caching to v0.2.0 * fix: add env variable for min/max ttl & update dns-caching * fix: update dns-caching package * fix: add force min/max TTL in network settings * docs: add docs for dns caching --------- Co-authored-by: Gauthier <mail@gauthierth.fr>
This commit is contained in:
16
docs/using-jellyseerr/settings/dns-caching.md
Normal file
16
docs/using-jellyseerr/settings/dns-caching.md
Normal file
@@ -0,0 +1,16 @@
|
||||
---
|
||||
title: DNS Caching
|
||||
description: Configure DNS caching settings.
|
||||
sidebar_position: 7
|
||||
---
|
||||
|
||||
# DNS Caching
|
||||
|
||||
Jellyseerr uses DNS caching to improve performance and reduce the number of DNS lookups required for external API calls. This can help speed up response times and reduce load on DNS servers, when something like a Pi-hole is used as a DNS resolver.
|
||||
|
||||
## Configuration
|
||||
|
||||
You can enable the DNS caching settings in the Network tab of the Jellyseerr settings. The default values follow the standard DNS caching behavior.
|
||||
|
||||
- **Force Minimum TTL**: Set a minimum time-to-live (TTL) in seconds for DNS cache entries. This ensures that frequently accessed DNS records are cached for a longer period, reducing the need for repeated lookups. Default is 0.
|
||||
- **Force Maximum TTL**: Set a maximum time-to-live (TTL) in seconds for DNS cache entries. This prevents infrequently accessed DNS records from being cached indefinitely, allowing for more up-to-date information to be retrieved. Default is -1 (unlimited).
|
||||
@@ -1,6 +1,7 @@
|
||||
---
|
||||
title: Jobs & Cache
|
||||
description: Configure jobs and cache settings.
|
||||
sidebar_position: 6
|
||||
---
|
||||
|
||||
# Jobs & Cache
|
||||
|
||||
Reference in New Issue
Block a user