Skip to content

Conversation

@AbhiPrasad
Copy link
Member

@AbhiPrasad AbhiPrasad commented Mar 24, 2025

ref #13088 (review)

Add some calls to react cache to memoize getFileBySlug. Also do the same for updatePathIfVersionedFileDoesNotExist.

@AbhiPrasad AbhiPrasad requested a review from chargome March 24, 2025 13:59
@AbhiPrasad AbhiPrasad self-assigned this Mar 24, 2025
@vercel
Copy link

vercel bot commented Mar 24, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
develop-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 24, 2025 2:36pm
sentry-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 24, 2025 2:36pm
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
changelog ⬜️ Ignored (Inspect) Visit Preview Mar 24, 2025 2:36pm

@codecov
Copy link

codecov bot commented Mar 24, 2025

Bundle Report

Changes will increase total bundle size by 12 bytes (0.0%) ⬆️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
sentry-docs-server-cjs 10.68MB 18 bytes (0.0%) ⬆️
sentry-docs-client-array-push 9.97MB -6 bytes (-0.0%) ⬇️

Affected Assets, Files, and Routes:

view changes for bundle: sentry-docs-client-array-push

Assets Changed:

Asset Name Size Change Total Size Change (%)
static/chunks/pages/_app-*.js -3 bytes 893.35kB -0.0%
static/chunks/9212-*.js -3 bytes 370.81kB -0.0%
server/middleware-*.js -5.54kB 1.01kB -84.55%
server/middleware-*.js 5.54kB 6.55kB 547.23% ⚠️
static/GP0uVK0c_8zXozXm1yBrT/_buildManifest.js (New) 581 bytes 581 bytes 100.0% 🚀
static/GP0uVK0c_8zXozXm1yBrT/_ssgManifest.js (New) 77 bytes 77 bytes 100.0% 🚀
static/KsYLdJEYjqJhWTW1jufyu/_buildManifest.js (Deleted) -581 bytes 0 bytes -100.0% 🗑️
static/KsYLdJEYjqJhWTW1jufyu/_ssgManifest.js (Deleted) -77 bytes 0 bytes -100.0% 🗑️
view changes for bundle: sentry-docs-server-cjs

Assets Changed:

Asset Name Size Change Total Size Change (%)
7517.js -3 bytes 1.66MB -0.0%
../instrumentation.js -3 bytes 908.31kB -0.0%
7688.js -3 bytes 884.28kB -0.0%
../app/[[...path]]/page.js -5 bytes 535.76kB -0.0%
4027.js 32 bytes 18.73kB 0.17%

Files in ../app/[[...path]]/page.js:

  • ./app/[[...path]]/page.tsx → Total Size: 10.78kB

  • ./src/components/platformContent.tsx → Total Size: 4.33kB

  • ./src/components/include.tsx → Total Size: 1.37kB

Files in 4027.js:

  • ./src/mdx.ts → Total Size: 18.0kB

App Routes Affected:

App Route Size Change Total Size Change (%)
/[[...path]] -5 bytes 3.08MB -0.0%

@AbhiPrasad AbhiPrasad merged commit e38e42a into master Mar 26, 2025
13 checks passed
@AbhiPrasad AbhiPrasad deleted the abhi-cache-getFileBySlugWithCache branch March 26, 2025 15:38
@github-actions github-actions bot locked and limited conversation to collaborators Apr 11, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants