mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-25 07:54:46 +00:00
clear item cache on update of certain docs
This commit is contained in:
@@ -180,6 +180,11 @@ class DocType:
|
|||||||
sql("delete from tabDocPerm where parent = %s and role = %s and ifnull(permlevel,0) = %s",(parent, role, cint(permlevel)))
|
sql("delete from tabDocPerm where parent = %s and role = %s and ifnull(permlevel,0) = %s",(parent, role, cint(permlevel)))
|
||||||
|
|
||||||
sql("update tabDocType set modified = %s where name = %s",(now(), parent))
|
sql("update tabDocType set modified = %s where name = %s",(now(), parent))
|
||||||
|
|
||||||
|
|
||||||
|
from webnotes.utils.cache import CacheItem
|
||||||
|
CacheItem(parent).clear()
|
||||||
|
|
||||||
msgprint("Permissions Updated")
|
msgprint("Permissions Updated")
|
||||||
|
|
||||||
# Get Fields based on DocType and Permlevel
|
# Get Fields based on DocType and Permlevel
|
||||||
|
|||||||
Reference in New Issue
Block a user