]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
Fix: Fallback to Redis URL if no DB read cache Redis URL provided (#10315)
authorAntoine Mérino <antoine.merino.dev@gmail.com>
Wed, 2 Jul 2025 17:59:24 +0000 (19:59 +0200)
committerGitHub <noreply@github.com>
Wed, 2 Jul 2025 17:59:24 +0000 (10:59 -0700)
---------

Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>
src/paperless/settings.py

index 41146e7170f7565ba00081dc8c4d296e51ffb89c..29943e7075f027db775590e7029dedd6c39122f6 100644 (file)
@@ -921,7 +921,7 @@ def _parse_cachalot_settings():
     ttl = __get_int("PAPERLESS_READ_CACHE_TTL", 3600)
     ttl = min(ttl, 31536000) if ttl > 0 else 3600
     _, redis_url = _parse_redis_url(
-        os.getenv("PAPERLESS_READ_CACHE_REDIS_URL", None),
+        os.getenv("PAPERLESS_READ_CACHE_REDIS_URL", _CHANNELS_REDIS_URL),
     )
     result = {
         "CACHALOT_CACHE": "read-cache",