Skip to content

Commit

Permalink
DFP. Fix when creating docker image that there is no redis instance. …
Browse files Browse the repository at this point in the history
…Restored old functionality from old code. More info: 6ce4036
  • Loading branch information
developmentforpeople committed Jun 12, 2024
1 parent 9997c44 commit 080df18
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frappe/utils/redis_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 080df18

Please sign in to comment.