From 9fcae2fa4517f85f91c76ac9dd9525555e98bcc0 Mon Sep 17 00:00:00 2001 From: Sagar Vora <16315650+sagarvora@users.noreply.github.com> Date: Sat, 10 Jan 2026 13:29:14 +0530 Subject: [PATCH] fix: check for GET request --- frappe/client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frappe/client.py b/frappe/client.py index 9f613c3ff3..84e0ce878e 100644 --- a/frappe/client.py +++ b/frappe/client.py @@ -432,8 +432,8 @@ def validate_link_and_fetch( fields_to_fetch = frappe.parse_json(fields_to_fetch) - # only cache is no fields to fetch and no filters specified by user - can_cache = not (fields_to_fetch or filters) + # only cache is no fields to fetch and request is GET + can_cache = not fields_to_fetch and frappe.request.method == "GET" # Use search_widget to validate - ensures filters/custom queries are respected # in addition to standard permission checks