-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
JS and CSS minification should run on a separate thread #1328
Comments
but it doesn't matter, you would have to wait for the minification to be done before the NodeBB is ready for use. EDIT: no? |
Yes, though 2 reasons :
|
Yeah, about time. Anything to shorten the restart times is great. |
I'm in approval, how long would this take? Also why not add hashing and caching? So that NodeBB can just compare with the file and not have to re-minify it? |
For bonus points, NodeBB could begin serving a stub "site_title is loading" page, though this isn't really necessary at this point. NodeBB used to save the file to disk, although we were running into issues where the hashing process was not detecting all cases when a file changed, and was thus not reminifying the file. We opted for a minify on app start process, but that has its own problems as well :-) |
If you can borrow some code from nodemon you could implement an sub app that refreshes with the latest template... No need to even restart, it just happens. |
The js and CSS minification methods should run on a separate nodejs process. This would free up the system in the event that assets need to be recompiled.
Make sure the process has a priority of 20, though I'm not sure how much this would help.
The text was updated successfully, but these errors were encountered: