Skip to content

Commit 42739ae

Browse files
committed
remove dependency on memory queue from kv cache
1 parent ea6396a commit 42739ae

File tree

3 files changed

+11
-27
lines changed

3 files changed

+11
-27
lines changed

packages/cloudflare/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
"dependencies": {
7474
"@ast-grep/napi": "^0.34.1",
7575
"@dotenvx/dotenvx": "catalog:",
76-
"@opennextjs/aws": "https://pkg.pr.new/@opennextjs/aws@731",
76+
"@opennextjs/aws": "https://pkg.pr.new/@opennextjs/aws@734",
7777
"enquirer": "^2.4.1",
7878
"glob": "catalog:",
7979
"yaml": "^2.7.0"

packages/cloudflare/src/api/kv-cache.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import type { CacheValue, IncrementalCache, WithLastModified } from "@opennextjs
22
import { IgnorableError, RecoverableError } from "@opennextjs/aws/utils/error.js";
33

44
import { getCloudflareContext } from "./cloudflare-context.js";
5-
import memoryQueue from "./memory-queue.js";
65

76
export const CACHE_ASSET_DIR = "cdn-cgi/_next_cache";
87

@@ -117,8 +116,6 @@ class Cache implements IncrementalCache {
117116
);
118117
} catch {
119118
throw new RecoverableError(`Failed to set cache [${key}]`);
120-
} finally {
121-
memoryQueue.remove(key);
122119
}
123120
}
124121

pnpm-lock.yaml

Lines changed: 10 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)