fix: clear cache using client_cache (#31420)
It's faster than relying on indirect invalidations. This was avoided before only because delete_keys didn't exist on client_cache.
This commit is contained in:
parent
6bbbc916d5
commit
7721fdb054
1 changed files with 1 additions and 1 deletions
|
|
@ -95,7 +95,7 @@ def get_meta(doctype: str | dict | DocRef, cached=True) -> "_Meta":
|
|||
def clear_meta_cache(doctype: str = "*"):
|
||||
key = f"doctype_meta::{doctype}"
|
||||
if doctype == "*":
|
||||
frappe.cache.delete_keys(key)
|
||||
frappe.client_cache.delete_keys(key)
|
||||
else:
|
||||
frappe.client_cache.delete_value(key)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue