Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add cache check before registering routes (#1367)
If routes are already cached, it is not necessary to re-register Horizon routes on every request. I've found that many Laravel packages don't check for already cached routes and will needlessly re-register routes that already exist in the cache anyway. This reduces boot times in production by ~0.5 ms which adds up when applied to multiple other first-party Laravel packages. I can open PRs in other projects if this is approved.
- Loading branch information