diff --git a/src/app/portfolio/[slug]/building-passport/[propertyId]/utils.ts b/src/app/portfolio/[slug]/building-passport/[propertyId]/utils.ts index 7ab6bece..6728e09b 100644 --- a/src/app/portfolio/[slug]/building-passport/[propertyId]/utils.ts +++ b/src/app/portfolio/[slug]/building-passport/[propertyId]/utils.ts @@ -242,11 +242,13 @@ export async function getPropertyMeta( ): Promise { const url = process.env.URL + `/api/property-meta/${propertyId}`; - // Note, for the moment, we don't cache the data + // Don't cache: property meta (incl. headline SAP/EPC, which is now backfilled + // from the baseline table) changes as the modelling pipeline writes data, and + // a stale Data Cache entry was causing the current rating to render blank. const response = await fetch(url, { method: "GET", headers: { "Content-Type": "application/json" }, - next: { revalidate: 60 }, + cache: "no-store", }); if (!response.ok) { throw new Error("Network response was not ok");