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(