Disable page caching on scan and gallery pages

This commit is contained in:
DrMint 2024-07-28 17:10:48 +02:00
parent 6b797a42f8
commit e6ac2d8651
4 changed files with 9 additions and 5 deletions

View File

@ -1,6 +1,6 @@
{
"name": "v3.accords-library.com",
"version": "3.0.0-beta.8",
"version": "3.0.0-beta.9",
"scripts": {
"dev": "astro dev",
"start": "astro dev",

View File

@ -200,14 +200,14 @@ export class PageCache {
case SDKEndpointNames.getCollectibleGallery:
return [`/collectibles/${change.slug}/gallery`];
case SDKEndpointNames.getCollectibleGalleryImage:
return [`/collectibles/${change.slug}/gallery/${change.index}`];
// case SDKEndpointNames.getCollectibleGalleryImage:
// return [`/collectibles/${change.slug}/gallery/${change.index}`];
case SDKEndpointNames.getCollectibleScans:
return [`/collectibles/${change.slug}/scans`];
case SDKEndpointNames.getCollectibleScanPage:
return [`/collectibles/${change.slug}/scans/${change.index}`];
// case SDKEndpointNames.getCollectibleScanPage:
// return [`/collectibles/${change.slug}/scans/${change.index}`];
case SDKEndpointNames.getPage:
return [`/pages/${change.slug}`];

View File

@ -7,6 +7,8 @@ import { formatInlineTitle, formatRichTextToString } from "src/utils/format";
import { fetchOr404 } from "src/utils/responses";
import { getFileIcon } from "src/utils/attributes";
Astro.locals.pageCaching = false;
const slug = Astro.params.slug!;
const index = Astro.params.index!;
const { getLocalizedUrl, getLocalizedMatch, t, formatDate } = await getI18n(

View File

@ -6,6 +6,8 @@ import { payload } from "src/services";
import { formatInlineTitle, formatRichTextToString } from "src/utils/format";
import { fetchOr404 } from "src/utils/responses";
Astro.locals.pageCaching = false;
const slug = Astro.params.slug!;
const index = Astro.params.index!;
const { formatScanIndexShort, getLocalizedMatch, getLocalizedUrl } = await getI18n(