Skip to content

Commit da10a24

Browse files
committed
fixup! minor
1 parent d6199c8 commit da10a24

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

packages/cloudflare/src/api/overrides/incremental-cache/regional-cache.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ class RegionalCache implements IncrementalCache {
107107
const cachedResponse = await cache.match(urlKey);
108108

109109
if (cachedResponse) {
110-
debugCache("RegionalCache", "get: cached response");
110+
debugCache("RegionalCache", `get ${key} -> cached response`);
111111

112112
// Re-fetch from the store and update the regional cache in the background.
113113
// Note: this is only useful when the Cache API is not purged automatically.
@@ -135,7 +135,7 @@ class RegionalCache implements IncrementalCache {
135135
const { value, lastModified } = rawEntry ?? {};
136136
if (!value || typeof lastModified !== "number") return null;
137137

138-
console.log("RegionalCache", `get, key = ${key} -> put to cache`);
138+
console.log("RegionalCache", `get ${key} -> put to cache`);
139139

140140
// Update the locale cache after retrieving from the store.
141141
getCloudflareContext().ctx.waitUntil(
@@ -155,7 +155,7 @@ class RegionalCache implements IncrementalCache {
155155
cacheType?: CacheType
156156
): Promise<void> {
157157
try {
158-
debugCache("RegionalCache", `set: key = ${key}`);
158+
debugCache("RegionalCache", `set ${key}`);
159159

160160
await this.store.set(key, value, cacheType);
161161

@@ -175,7 +175,7 @@ class RegionalCache implements IncrementalCache {
175175
}
176176

177177
async delete(key: string): Promise<void> {
178-
debugCache("RegionalCache", `delete: key = ${key}`);
178+
debugCache("RegionalCache", `delete ${key}`);
179179
try {
180180
await this.store.delete(key);
181181

packages/cloudflare/src/api/overrides/tag-cache/kv-next-tag-cache.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export class KVNextModeTagCache implements NextModeTagCache {
3838
const revalidations = [...result.values()].filter((v) => v != null);
3939

4040
const timeMs = revalidations.length === 0 ? 0 : Math.max(...revalidations);
41-
debugCache("KVNextModeTagCache", `getLastRevalidated tags=${tags} time=${timeMs}`);
41+
debugCache("KVNextModeTagCache", `getLastRevalidated tags=${tags} -> time=${timeMs}`);
4242
return timeMs;
4343
} catch (e) {
4444
// By default we don't want to crash here, so we return false

0 commit comments

Comments
 (0)