-
Notifications
You must be signed in to change notification settings - Fork 1
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
@searchBy
stop working on Octane and LIGHTHOUSE_CACHE=false
#38
Comments
@searchBy
stop working on Octane and LIGHTHOUSE_CACHE=false
Thanks for the report. Unfortunately I've never tried Octan so it will take some time to install and debug. |
I think one of reason can be something from this documentation: https://laravel.com/docs/9.x/octane#dependency-injection-and-octane I try do something by myself and open PR, but your help will be great value. Your package is awesome, and with Octane, which is supported by Lighthouse too, is 10x faster. |
I cannot reproduce it with Swoole v4.8.11, Laravel v9.29.0, Octane v1.3.1, Lighthouse v5.60.0 and Lara v1.0.4. Could you please check value of |
Sure, I try to prepare repository. |
Problem solved. I had code like this:
And calling $typeRegistry or $dispatcher like above causes problem when Swoole was booted (on second request). I changed this to:
and problem was gone. |
Hi,
on Laravel Octane with Swoole, and when LIGHTHOUSE_CACHE is set to false, after second request there is a bug:
First request is always successful. When cache is enable, everything is OK. My schema is super simple:
and the query is:
All versions of framework, lighthouse and lara-asp are latest: 9.28, 5.58.2, 1.0.4.
The text was updated successfully, but these errors were encountered: