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