File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -242,7 +242,7 @@ export const getLatestOpenAPISpecVersionContent = cache({
242
242
* Resolve a URL to the content to render.
243
243
*/
244
244
export const getPublishedContentByUrl = cache ( {
245
- name : 'api.getPublishedContentByUrl.v4 ' ,
245
+ name : 'api.getPublishedContentByUrl.v5 ' ,
246
246
tag : ( url ) => getCacheTagForURL ( url ) ,
247
247
get : async (
248
248
url : string ,
@@ -267,6 +267,10 @@ export const getPublishedContentByUrl = cache({
267
267
268
268
const parsed = parseCacheResponse ( response ) ;
269
269
270
+ console . log (
271
+ `Parsed ttl: ${ parsed . ttl } at ${ Date . now ( ) } , for ${ 'apiToken' in response . data ? response . data . apiToken : '<no-token>' } `
272
+ ) ;
273
+
270
274
const data : PublishedContentWithCache = {
271
275
...response . data ,
272
276
cacheMaxAge : parsed . ttl ,
You can’t perform that action at this time.
0 commit comments