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

Function invalidateHomeCache

server/src/addie/home/cache.ts:95–103  ·  view source on GitHub ↗
(userId?: string)

Source from the content-addressed store, hash-verified

93 * Call this when user data changes (profile update, join working group, etc.)
94 */
95export function invalidateHomeCache(userId?: string): void {
96 if (!homeContentCache) return;
97
98 if (userId) {
99 homeContentCache.invalidate(userId);
100 } else {
101 homeContentCache.clear();
102 }
103}

Callers

nothing calls this directly

Calls 2

invalidateMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected