perf: slow down auto-refresh even more

once every 5 seconds instead of 2 seconds.
This commit is contained in:
Ankush Menat 2025-01-23 17:07:10 +05:30
parent 2b1df9aa56
commit daf4885f0a

View file

@ -26,7 +26,7 @@ frappe.views.ListView = class ListView extends frappe.views.BaseList {
this.show();
this.debounced_refresh = frappe.utils.debounce(
this.process_document_refreshes.bind(this),
2000
5000
);
this.count_upper_bound = 1001;
this._element_factory = new ElementFactory(this.doctype);