Skip to content

Reset system apis cache

Reset cache of system API

Reset cache of system API using global object 'g'.

await g.sys.cache.resetCacheSystemApis("SYSTEM_API_NAME");

Multi-tenant

  • The cache of a system API called for one tenant of a multi-tenant instance, with the x-am-tenant-username header. Without a tenant, the cache of every tenant is reset too.
await g.sys.cache.resetCacheSystemApis({ name: "SYSTEM_API_NAME", tenantUsername: "acme" });