From 080df18f429045d6f2153f5664d7d0379949c7b3 Mon Sep 17 00:00:00 2001 From: Development for People <47140294+developmentforpeople@users.noreply.github.com> Date: Wed, 12 Jun 2024 09:03:55 +0000 Subject: [PATCH] DFP. Fix when creating docker image that there is no redis instance. Restored old functionality from old code. More info: https://github.com/Ayuda-Efectiva/frappe/commit/6ce403640b17aff339e52acdda1e82a4d2ab7a98 --- frappe/utils/redis_wrapper.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frappe/utils/redis_wrapper.py b/frappe/utils/redis_wrapper.py index 80fb8a2ac99f..44207c050af0 100644 --- a/frappe/utils/redis_wrapper.py +++ b/frappe/utils/redis_wrapper.py @@ -272,7 +272,8 @@ def setup_cache(): redis_class=RedisWrapper, ) - return RedisWrapper.from_url(frappe.conf.get("redis_cache")) + # DFP. Fix when creating docker image that there is no redis instance. Restored old functionality from old code. More info: https://github.com/Ayuda-Efectiva/frappe/commit/6ce403640b17aff339e52acdda1e82a4d2ab7a98 + return RedisWrapper.from_url(frappe.conf.get("redis_cache") or "redis://localhost:11311") def get_sentinel_connection(