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.
This commit is contained in:
Abhinav Raut 2025-11-25 11:51:32 +05:30 committed by GitHub
parent afa0cedfca
commit 22ad66b3bf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -262,7 +262,7 @@ def bundle(
frappe.commands.popen(command, cwd=frappe_app_path, env=get_node_env(), raise_err=True) frappe.commands.popen(command, cwd=frappe_app_path, env=get_node_env(), raise_err=True)
with suppress(Exception): with suppress(Exception):
frappe.cache.flushall() frappe.cache.flushdb()
def watch(apps=None): def watch(apps=None):