diff --git a/frappe/utils/global_search.py b/frappe/utils/global_search.py index 007d138638..e945039d0d 100644 --- a/frappe/utils/global_search.py +++ b/frappe/utils/global_search.py @@ -274,6 +274,9 @@ def update_global_search(doc): sync_value_in_queue(value) def update_global_search_for_all_web_pages(): + if frappe.conf.get('disable_global_search'): + return + print('Update global search for all web pages...') routes_to_index = get_routes_to_index() for route in routes_to_index: