Skip to content

Commit 33598e6

Browse files
authored
Add logging for cache retrieval in GitbookIncrementalCache (#4231)
1 parent 9045ba5 commit 33598e6

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

packages/gitbook/openNext/incrementalCache/incrementalCache.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ export class GitbookIncrementalCache implements IncrementalCache {
2929
cacheType?: CacheType
3030
): Promise<WithLastModified<CacheValue<CacheType>> | null> {
3131
const cacheKey = this.getR2Key(key, cacheType);
32+
console.log(`[GitbookIncrementalCache] Getting cache for key: ${cacheKey}`, key, cacheType);
3233

3334
const r2 = getCloudflareContext().env[BINDING_NAME];
3435
if (!r2) throw new Error('No R2 bucket');

0 commit comments

Comments
 (0)