Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove cache clearing from static-checker #8290

Merged
merged 1 commit into from
Aug 9, 2019

Conversation

ijjk
Copy link
Member

@ijjk ijjk commented Aug 8, 2019

Clearing the cache can cause unintended side effects with specific modules, it can also slow down the process of requiring pages.

This was originally intended to prevent an out-of-memory OOM error inside of a static check worker although worker-farm should spin up a new worker in the event of an OOM.

Fixes: #7894

@ijjk
Copy link
Member Author

ijjk commented Aug 8, 2019

Stats from current PR

Click to expand stats
zeit/next.js canary ijjk/next.js fix-firebase-cache-clear Change
Build Duration 22.8s 22.2s -613ms
node_modules Size 43.6 MB 43.6 MB -656 B
Total Bundle (main, webpack, commons) Size 206 kB 206 kB
Total Bundle (main, webpack, commons) gzip Size 68.2 kB 68.2 kB
Total Bundle (main, webpack, commons) Modern Size 181 kB 181 kB
Total Bundle (main, webpack, commons) Modern gzip Size 59.9 kB 59.9 kB
Client _app Size 2.39 kB 2.39 kB
Client _app gzip Size 1.08 kB 1.08 kB
Client _app Modern Size 1.83 kB 1.83 kB
Client _app gzip Modern Size 890 B 890 B
Client _error Size 8.22 kB 8.22 kB
Client _error gzip Size 3.16 kB 3.16 kB
Client _error Modern Size 5.85 kB 5.85 kB
Client _error gzip Modern Size 2.33 kB 2.33 kB
Client pages/index Size 343 B 343 B
Client pages/index gzip Size 246 B 246 B
Client pages/index Modern Size 319 B 319 B
Client pages/index gzip Modern Size 254 B 254 B
Client pages/link Size 4.18 kB 4.18 kB
Client pages/link gzip Size 1.82 kB 1.82 kB
Client pages/link Modern Size 3.81 kB 3.81 kB
Client pages/link gzip Modern Size 1.72 kB 1.72 kB
Client pages/routerDirect Size 423 B 423 B
Client pages/routerDirect gzip Size 306 B 306 B
Client pages/routerDirect Modern Size 411 B 411 B
Client pages/routerDirect gzip Modern Size 314 B 314 B
Client pages/withRouter Size 435 B 435 B
Client pages/withRouter gzip Size 301 B 301 B
Client pages/withRouter Modern Size 423 B 423 B
Client pages/withRouter gzip Modern Size 309 B 309 B
Client main Size 15.6 kB 15.6 kB
Client main gzip Size 5.5 kB 5.5 kB
Client main Modern Size 12.4 kB 12.4 kB
Client main Modern gzip Size 4.78 kB 4.78 kB
Client commons Size 188 kB 188 kB
Client commons gzip Size 61.3 kB 61.3 kB
Client commons Modern Size 169 kB 169 kB
Client commons Modern gzip Size 55.1 kB 55.1 kB
Client webpack Size 1.53 kB 1.53 kB
Client webpack gzip Size 778 B 778 B
Client webpack Modern Size 1.53 kB 1.53 kB
Client webpack Modern gzip Size 785 B 785 B
Base Rendered Size 2.76 kB 2.76 kB
Build Dir Size 1.39 MB 1.39 MB
Click to expand serverless stats
zeit/next.js canary ijjk/next.js fix-firebase-cache-clear Change
Build Duration 23.4s 23.5s ⚠️ +52ms
node_modules Size 43.6 MB 43.6 MB -656 B
Total Bundle (main, webpack, commons) Size 206 kB 206 kB
Total Bundle (main, webpack, commons) gzip Size 68.2 kB 68.2 kB
Total Bundle (main, webpack, commons) Modern Size 181 kB 181 kB
Total Bundle (main, webpack, commons) Modern gzip Size 59.9 kB 59.9 kB
Client _app Size 2.39 kB 2.39 kB
Client _app gzip Size 1.08 kB 1.08 kB
Client _app Modern Size 1.83 kB 1.83 kB
Client _app gzip Modern Size 890 B 890 B
Client _error Size 8.22 kB 8.22 kB
Client _error gzip Size 3.16 kB 3.16 kB
Client _error Modern Size 5.85 kB 5.85 kB
Client _error gzip Modern Size 2.33 kB 2.33 kB
Client pages/index Size 343 B 343 B
Client pages/index gzip Size 246 B 246 B
Client pages/index Modern Size 319 B 319 B
Client pages/index gzip Modern Size 254 B 254 B
Client pages/link Size 4.18 kB 4.18 kB
Client pages/link gzip Size 1.82 kB 1.82 kB
Client pages/link Modern Size 3.81 kB 3.81 kB
Client pages/link gzip Modern Size 1.72 kB 1.72 kB
Client pages/routerDirect Size 423 B 423 B
Client pages/routerDirect gzip Size 306 B 306 B
Client pages/routerDirect Modern Size 411 B 411 B
Client pages/routerDirect gzip Modern Size 314 B 314 B
Client pages/withRouter Size 435 B 435 B
Client pages/withRouter gzip Size 300 B 300 B
Client pages/withRouter Modern Size 423 B 423 B
Client pages/withRouter gzip Modern Size 309 B 309 B
Client main Size 15.6 kB 15.6 kB
Client main gzip Size 5.5 kB 5.5 kB
Client main Modern Size 12.4 kB 12.4 kB
Client main Modern gzip Size 4.78 kB 4.78 kB
Client commons Size 188 kB 188 kB
Client commons gzip Size 61.3 kB 61.3 kB
Client commons Modern Size 169 kB 169 kB
Client commons Modern gzip Size 55.1 kB 55.1 kB
Client webpack Size 1.53 kB 1.53 kB
Client webpack gzip Size 778 B 778 B
Client webpack Modern Size 1.53 kB 1.53 kB
Client webpack Modern gzip Size 785 B 785 B
Serverless pages/link Size 255 kB 255 kB
Serverless pages/link gzip Size 68.6 kB 68.6 kB -1 B
Serverless pages/index Size 248 kB 248 kB
Serverless pages/index gzip Size 66.4 kB 66.4 kB
Serverless pages/_error Size 247 kB 247 kB
Serverless pages/_error gzip Size 66.1 kB 66.1 kB
Serverless pages/routerDirect Size 248 kB 248 kB
Serverless pages/routerDirect gzip Size 66.3 kB 66.3 kB
Serverless pages/withRouter Size 248 kB 248 kB
Serverless pages/withRouter gzip Size 66.4 kB 66.4 kB
Build Dir Size 2.6 MB 2.6 MB

@Timer Timer added this to the 9.0.4 milestone Aug 9, 2019
@Timer Timer merged commit 1db6918 into vercel:canary Aug 9, 2019
@ijjk ijjk deleted the fix-firebase-cache-clear branch August 9, 2019 01:59
@vercel vercel locked as resolved and limited conversation to collaborators Feb 1, 2022
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.

next build fails with "Module did not self-register."
2 participants