mirror of
https://github.com/R0m1k3/CollectFlow.git
synced 2026-10-21 14:08:08 +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 { sessionSnapshots } from "@/db/schema";
|
||||||
import { eq, desc } from "drizzle-orm";
|
import { eq, desc } from "drizzle-orm";
|
||||||
|
|
||||||
// ─── Tag de cache par fournisseur ─────────────────────────────────────────────
|
// ─── Interfaces ───────────────────────────────────────────────────────────────
|
||||||
// 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}`;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface GetProductRowsInput {
|
export interface GetProductRowsInput {
|
||||||
codeFournisseur: string;
|
codeFournisseur: string;
|
||||||
magasin?: string;
|
magasin?: string;
|
||||||
|
|||||||
Reference in new issue
Block a user