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

[10.x] Fix route:cache from excluding octane routes #46448

Closed
wants to merge 5 commits into from

Conversation

CharlesBilbo
Copy link
Contributor

@CharlesBilbo CharlesBilbo commented Mar 13, 2023

When running route:cache command with octane routes they are being excluded from the cached routes file. This causes octane routes to 404 when cached.

While caching the routes gives a negative performance to swoole (not sure about road runner) by increasing the amount of memory needed for each request this will at least prevent them prevent them from 404ing.

This will also prevent questions like this

laravel/octane#596
laravel/octane#658

This PR is a required dependency for this PR.

laravel/octane#659

Additonally it doesnt seem like Octane::route method doesn't work with road runner.

@CharlesBilbo CharlesBilbo changed the title [10.x] Fix route:cache from excluding octane routes Draft: [10.x] Fix route:cache from excluding octane routes Mar 13, 2023
@CharlesBilbo CharlesBilbo changed the title Draft: [10.x] Fix route:cache from excluding octane routes [10.x] Fix route:cache from excluding octane routes Mar 13, 2023
@CharlesBilbo CharlesBilbo marked this pull request as draft March 13, 2023 16:51
@CharlesBilbo CharlesBilbo marked this pull request as ready for review March 13, 2023 17:17
@CharlesBilbo

This comment was marked as outdated.

@CharlesBilbo CharlesBilbo requested a review from cosmastech March 13, 2023 20:53
@taylorotwell
Copy link
Member

Octane::route is not really a documented stable feature of Octane at the current moment.

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.

3 participants