feat: implement server-side product data aggregation and caching for grid view

This commit is contained in:
Michael committed 2026-04-02 17:00:21 +02:00
1 parent 557e3ed8e0
commit 4db7faa41f
3 files changed
+1 -6

No files matched your search

BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
+1 -6
View File
@@ -17,12 +17,7 @@ import { db } from "@/db";
import { sessionSnapshots } from "@/db/schema";
import { eq, desc } from "drizzle-orm";
// ─── Tag de cache par fournisseur ─────────────────────────────────────────────
// Permet d'invalider précisément le cache d'un seul fournisseur lors d'une sauvegarde.
export function getGridCacheTag(codeFournisseur: string): string {
return `grid-rows-${codeFournisseur}`;
}
// ─── Interfaces ───────────────────────────────────────────────────────────────
export interface GetProductRowsInput {
codeFournisseur: string;
magasin?: string;