alpha
Login
or
Join now
danabra.mov
/
sidetrail
Star
1
Fork
1
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
an app to share curated trails
sidetrail.app
Star
1
Fork
1
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
add cachebreaker patch for use cache
author
Dan Abramov
date
6 months ago
(Dec 6, 2025, 5:54 PM +0900)
commit
bed91f2b
bed91f2bace67ffe2a1fd7b528c307956ab665a4
parent
7486fd72
7486fd724394c32ae439e21e00b557af3353f215
+38
1 changed file
Expand all
Collapse all
Unified
Split
patches
next+16.1.0-canary.12.patch
+38
patches/next+16.1.0-canary.12.patch
Reviewed
···
1
1
+
diff --git a/node_modules/next/dist/esm/server/use-cache/use-cache-wrapper.js b/node_modules/next/dist/esm/server/use-cache/use-cache-wrapper.js
2
2
+
index e0995a2..86b341e 100644
3
3
+
--- a/node_modules/next/dist/esm/server/use-cache/use-cache-wrapper.js
4
4
+
+++ b/node_modules/next/dist/esm/server/use-cache/use-cache-wrapper.js
5
5
+
@@ -775,12 +775,12 @@ export async function cache(kind, id, boundArgsLength, originalFn, argsObj) {
6
6
+
// mutable, but only lives as long as the request, so the key does not
7
7
+
// need to include cookies.
8
8
+
const cacheKeyParts = hmrRefreshHash ? [
9
9
+
- buildId,
10
10
+
+ process.env.SIDETRAIL_USE_CACHE_BREAKER || buildId,
11
11
+
id,
12
12
+
args,
13
13
+
hmrRefreshHash
14
14
+
] : [
15
15
+
- buildId,
16
16
+
+ process.env.SIDETRAIL_USE_CACHE_BREAKER || buildId,
17
17
+
id,
18
18
+
args
19
19
+
];
20
20
+
diff --git a/node_modules/next/dist/server/use-cache/use-cache-wrapper.js b/node_modules/next/dist/server/use-cache/use-cache-wrapper.js
21
21
+
index 44a779c..2911f93 100644
22
22
+
--- a/node_modules/next/dist/server/use-cache/use-cache-wrapper.js
23
23
+
+++ b/node_modules/next/dist/server/use-cache/use-cache-wrapper.js
24
24
+
@@ -826,12 +826,12 @@ async function cache(kind, id, boundArgsLength, originalFn, argsObj) {
25
25
+
// mutable, but only lives as long as the request, so the key does not
26
26
+
// need to include cookies.
27
27
+
const cacheKeyParts = hmrRefreshHash ? [
28
28
+
- buildId,
29
29
+
+ process.env.SIDETRAIL_USE_CACHE_BREAKER || buildId,
30
30
+
id,
31
31
+
args,
32
32
+
hmrRefreshHash
33
33
+
] : [
34
34
+
- buildId,
35
35
+
+ process.env.SIDETRAIL_USE_CACHE_BREAKER || buildId,
36
36
+
id,
37
37
+
args
38
38
+
];