From b1ddc90b2b8e5351e512e4cc7716ab26a0e211f3 Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Thu, 29 Jan 2026 10:55:04 +0800 Subject: [PATCH] perf: Cache clearance error in datasource deletion API --- backend/apps/datasource/crud/datasource.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/apps/datasource/crud/datasource.py b/backend/apps/datasource/crud/datasource.py index 8c919166..868e979e 100644 --- a/backend/apps/datasource/crud/datasource.py +++ b/backend/apps/datasource/crud/datasource.py @@ -135,7 +135,7 @@ async def delete_ds(session: SessionDep, id: int): delete_table_by_ds_id(session, id) delete_field_by_ds_id(session, id) if term: - await clear_ws_resource_cache(term.oid) + await clear_ws_ds_cache(term.oid) return { "message": f"Datasource with ID {id} deleted successfully." }