MCPcopy Create free account
hub / github.com/adcontextprotocol/adcp / invalidateWebAdminStatusCache

Function invalidateWebAdminStatusCache

server/src/addie/mcp/admin-tools.ts:200–206  ·  view source on GitHub ↗
(workosUserId?: string)

Source from the content-addressed store, hash-verified

198 * Invalidate web admin status cache for a user (call when admin membership changes)
199 */
200export function invalidateWebAdminStatusCache(workosUserId?: string): void {
201 if (workosUserId) {
202 webAdminStatusCache.delete(workosUserId);
203 } else {
204 webAdminStatusCache.clear();
205 }
206}
207
208/**
209 * Invalidate all admin caches (both Slack and web)

Calls 2

deleteMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected