fix: address Bugbot review #2 findings
- Invalidate integration data cache from widget interact mutations (downloads, dns-hole, media-requests, indexer-manager, smart-home, anchor-notes) - Redis handler getExpiration: fetch missing tags from Redis (multi-instance coherence) - saveItemOptions: invalidate board cache after saving - Remove unused cacheTags.app - Fix integration data cache comment accuracy
This commit is contained in:
11 files changed
+60
-6
No files matched your search
@@ -7,6 +7,7 @@ import { getServerSettingsAsync } from "@homarr/db/queries";
|
||||
import { boards, items } from "@homarr/db/schema";
|
||||
|
||||
import type { WidgetOptionsSettings } from "../../../../widgets/src/definition";
|
||||
import { invalidateBoardCache } from "../../cache-invalidation";
|
||||
import { createTRPCRouter, protectedProcedure, publicProcedure } from "../../trpc";
|
||||
import { throwIfActionForbiddenAsync } from "../board/board-access";
|
||||
|
||||
@@ -51,5 +52,7 @@ export const optionsRouter = createTRPCRouter({
|
||||
.update(items)
|
||||
.set({ options: SuperJSON.stringify(options) })
|
||||
.where(eq(items.id, input.itemId));
|
||||
|
||||
invalidateBoardCache(input.boardId);
|
||||
}),
|
||||
});
|
||||
Reference in new issue
Block a user