From e2ea829df2e224d13ef7485e1dda61684242c59e Mon Sep 17 00:00:00 2001 From: Arthur Hanson Date: Wed, 11 Feb 2026 10:25:11 -0800 Subject: [PATCH] Update netbox/netbox/settings.py Co-authored-by: Jeremy Stretch --- netbox/netbox/settings.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/netbox/netbox/settings.py b/netbox/netbox/settings.py index e35b5cae7..2e9339af9 100644 --- a/netbox/netbox/settings.py +++ b/netbox/netbox/settings.py @@ -409,8 +409,7 @@ if CACHING_REDIS_CA_CERT_PATH: CACHES['default']['OPTIONS']['CONNECTION_POOL_KWARGS']['ssl_ca_certs'] = CACHING_REDIS_CA_CERT_PATH # Merge in KWARGS for additional parameters -caching_redis_kwargs = REDIS['caching'].get('KWARGS') -if caching_redis_kwargs: +if caching_redis_kwargs := REDIS['caching'].get('KWARGS'): CACHES['default']['OPTIONS'].setdefault('CONNECTION_POOL_KWARGS', {}) CACHES['default']['OPTIONS']['CONNECTION_POOL_KWARGS'].update(caching_redis_kwargs)