From 36f64edb6726f3f37a83a565ddf5b073487bf384 Mon Sep 17 00:00:00 2001 From: Jonas Metzener Date: Tue, 10 Dec 2024 14:08:48 +0100 Subject: [PATCH] fix(cache): add environment variable to configure cache options --- document_merge_service/settings.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/document_merge_service/settings.py b/document_merge_service/settings.py index 2a4e2a6e..9979ac05 100644 --- a/document_merge_service/settings.py +++ b/document_merge_service/settings.py @@ -95,7 +95,8 @@ def default(default_dev=env.NOTSET, default_prod=env.NOTSET): "BACKEND": env.str( "CACHE_BACKEND", default="django.core.cache.backends.locmem.LocMemCache" ), - "LOCATION": env.str("CACHE_LOCATION", ""), + "LOCATION": env.str("CACHE_LOCATION", default=""), + "OPTIONS": env.dict("CACHE_OPTIONS", default={}), } }