Unverified Commit 16ec7d33 authored by JJ Kasper's avatar JJ Kasper Committed by GitHub

[backport] Increase max cache tags to 128 (#73125)

parent 0491c2a0
...@@ -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_'
......
...@@ -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')
}) })
}) })
......
...@@ -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(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment