From 22ad66b3bf302c581e2e421394c9a439df3ef8e7 Mon Sep 17 00:00:00 2001 From: Abhinav Raut Date: Tue, 25 Nov 2025 11:51:32 +0530 Subject: [PATCH] fix: remove flush all while build assets, as asset build should never clear entire redis database. (#34874) Switched to flushdb so frappe on clears the DB assigned to it in config. --- frappe/build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/build.py b/frappe/build.py index 98fbce515b..f388ef2271 100644 --- a/frappe/build.py +++ b/frappe/build.py @@ -262,7 +262,7 @@ def bundle( frappe.commands.popen(command, cwd=frappe_app_path, env=get_node_env(), raise_err=True) with suppress(Exception): - frappe.cache.flushall() + frappe.cache.flushdb() def watch(apps=None):