fix: Obey config for global search of web routes
This commit is contained in:
parent
f6b4eaf88b
commit
f7158ad5f6
1 changed files with 3 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue