fix: Obey config for global search of web routes

This commit is contained in:
Faris Ansari 2020-06-05 15:39:25 +05:30
parent f6b4eaf88b
commit f7158ad5f6

View file

@ -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: