mirror of
https://github.com/R0m1k3/CollectFlow.git
synced 2026-10-11 17:26:32 +02:00
feat: implement server-side product data aggregation and caching for grid view
This commit is contained in:
1 parent
557e3ed8e0
commit
4db7faa41f
3 files changed
+1
-6
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user