We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4dae8ac commit a3e1125Copy full SHA for a3e1125
packages/gitbook/src/lib/api.ts
@@ -242,7 +242,7 @@ export const getLatestOpenAPISpecVersionContent = cache({
242
* Resolve a URL to the content to render.
243
*/
244
export const getPublishedContentByUrl = cache({
245
- name: 'api.getPublishedContentByUrl.v4',
+ name: 'api.getPublishedContentByUrl.v5',
246
tag: (url) => getCacheTagForURL(url),
247
get: async (
248
url: string,
@@ -267,6 +267,10 @@ export const getPublishedContentByUrl = cache({
267
268
const parsed = parseCacheResponse(response);
269
270
+ console.log(
271
+ `Parsed ttl: ${parsed.ttl} at ${Date.now()}, for ${'apiToken' in response.data ? response.data.apiToken : '<no-token>'}`
272
+ );
273
+
274
const data: PublishedContentWithCache = {
275
...response.data,
276
cacheMaxAge: parsed.ttl,
0 commit comments