fix: address Bugbot review #3 — mutation invalidation gaps
- Dual-layer cache invalidation on interact mutations (dns-hole, media-requests, smart-home, indexer-manager, anchor-notes) - importOldmarrConfig: invalidate created boards - createBoard: invalidateUserCache when auto-setting homeBoardId - group.savePositions: invalidate user caches for affected members - integration.requestMedia: invalidate integration data cache - user.delete: invalidate user cache
This commit is contained in:
11 files changed
+31
-4
No files matched your search
@@ -43,6 +43,7 @@ export const smartHomeRouter = createTRPCRouter({
|
||||
const success = await client.triggerToggleAsync(input.entityId);
|
||||
|
||||
invalidateIntegrationDataCache(integration.id);
|
||||
smartHomeEntityStateRequestHandler.invalidateCache();
|
||||
return success;
|
||||
}),
|
||||
executeAutomation: protectedProcedure
|
||||
@@ -59,5 +60,6 @@ export const smartHomeRouter = createTRPCRouter({
|
||||
const client = await createIntegrationAsync(integration);
|
||||
await client.triggerAutomationAsync(input.automationId);
|
||||
invalidateIntegrationDataCache(integration.id);
|
||||
smartHomeEntityStateRequestHandler.invalidateCache();
|
||||
}),
|
||||
});
|
||||
Reference in new issue
Block a user