def refresh_role(role, sync=False): cache.kv.delete(cache.object_key(Role, role.id), cache.object_key(Role, role.id, 'channels')) Authz.flush_role(role.id)
def refresh_role(role, sync=False): Authz.flush_role(role) cache.kv.delete( cache.object_key(Role, role.id), cache.object_key(Role, role.id, "channels"), )