fix: lower rapid-reload threshold

This commit is contained in:
Ankush Menat 2023-07-16 11:22:46 +05:30
parent 54b36e8604
commit d9a698d4c5

View file

@ -32,7 +32,7 @@ frappe.assets = {
// Evict cache every 2 days
// Evict cache if page is reloaded within 10 seconds. Which could be user trying to
// refresh if things feel broken.
if ((not_updated_since < 10000 && is_reload()) || not_updated_since > 2 * 86400000) {
if ((not_updated_since < 5000 && is_reload()) || not_updated_since > 2 * 86400000) {
frappe.assets.clear_local_storage();
}
} else {