Skip to content

Conversation

rtuin
Copy link
Contributor

@rtuin rtuin commented Dec 21, 2019

This speeds up the page loads a little for non-cli requests. Neither commands schedules and migrations are used in web requests, so they don't have to be loaded.

Example comparison on the CRM Dashboard:
Screen Shot 2019-12-21 at 17 09 36

Another improvement for later would be to do the registerCommands() call only on CLI calls.

This speeds up the page loads a little for non-cli requests
@rtuin rtuin requested review from rdgout and arondeparon December 21, 2019 16:19
@rdgout
Copy link
Contributor

rdgout commented Dec 23, 2019

I took a look at this and I noticed we can also place $this->registerCommands() in the boot() function. Seems fine!

@rdgout rdgout merged commit 4ce9da1 into master Dec 23, 2019
@rdgout rdgout deleted the load-schedule-and-migrations-only-on-cli branch December 23, 2019 08:26
@rtuin
Copy link
Contributor Author

rtuin commented Dec 23, 2019

Cool! I didn't have time to properly test if that works as expected when I made this pr.

👊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants