Skip to content

Commit 863c196

Browse files
author
Nicolas Dorseuil
committed
add log for cache size
1 parent 49ee18d commit 863c196

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/gitbook/src/routes/ogimage.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,7 @@ const staticImagesCache = new Map<string, string>();
344344
* Read a static image and cache it in memory.
345345
*/
346346
async function readStaticImage(url: string) {
347+
logOnCloudflareOnly(`Reading static image: ${url}, cache size: ${staticImagesCache.size}`);
347348
const cached = staticImagesCache.get(url);
348349
if (cached) {
349350
return cached;

0 commit comments

Comments
 (0)