Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
16ec7d33
Unverified
Commit
16ec7d33
authored
Nov 25, 2024
by
JJ Kasper
Committed by
GitHub
Nov 25, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[backport] Increase max cache tags to 128 (#73125)
parent
0491c2a0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
constants.ts
packages/next/src/lib/constants.ts
+1
-1
app-static.test.ts
test/e2e/app-dir/app-static/app-static.test.ts
+1
-1
page.tsx
test/e2e/app-dir/app-static/app/too-many-cache-tags/page.tsx
+1
-1
No files found.
packages/next/src/lib/constants.ts
View file @
16ec7d33
...
@@ -21,7 +21,7 @@ export const NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER =
...
@@ -21,7 +21,7 @@ export const NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER =
// if these change make sure we update the related
// if these change make sure we update the related
// documentation as well
// documentation as well
export
const
NEXT_CACHE_TAG_MAX_ITEMS
=
64
export
const
NEXT_CACHE_TAG_MAX_ITEMS
=
128
export
const
NEXT_CACHE_TAG_MAX_LENGTH
=
256
export
const
NEXT_CACHE_TAG_MAX_LENGTH
=
256
export
const
NEXT_CACHE_SOFT_TAG_MAX_LENGTH
=
1024
export
const
NEXT_CACHE_SOFT_TAG_MAX_LENGTH
=
1024
export
const
NEXT_CACHE_IMPLICIT_TAG_ID
=
'_N_T_'
export
const
NEXT_CACHE_IMPLICIT_TAG_ID
=
'_N_T_'
...
...
test/e2e/app-dir/app-static/app-static.test.ts
View file @
16ec7d33
...
@@ -64,7 +64,7 @@ describe('app-dir static/dynamic handling', () => {
...
@@ -64,7 +64,7 @@ describe('app-dir static/dynamic handling', () => {
expect
(
res
.
status
).
toBe
(
200
)
expect
(
res
.
status
).
toBe
(
200
)
await
retry
(()
=>
{
await
retry
(()
=>
{
expect
(
next
.
cliOutput
).
toContain
(
'exceeded max tag count for'
)
expect
(
next
.
cliOutput
).
toContain
(
'exceeded max tag count for'
)
expect
(
next
.
cliOutput
).
toContain
(
'tag-
65
'
)
expect
(
next
.
cliOutput
).
toContain
(
'tag-
129
'
)
})
})
})
})
...
...
test/e2e/app-dir/app-static/app/too-many-cache-tags/page.tsx
View file @
16ec7d33
...
@@ -3,7 +3,7 @@ export const revalidate = 0
...
@@ -3,7 +3,7 @@ export const revalidate = 0
export
default
async
function
Page
()
{
export
default
async
function
Page
()
{
const
tags
:
string
[]
=
[]
const
tags
:
string
[]
=
[]
for
(
let
i
=
0
;
i
<
96
;
i
++
)
{
for
(
let
i
=
0
;
i
<
130
;
i
++
)
{
tags
.
push
(
`tag-
${
i
}
`
)
tags
.
push
(
`tag-
${
i
}
`
)
}
}
const
data
=
await
fetch
(
const
data
=
await
fetch
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment