Repository navigation
Laravel Octane: private properties on Controller stay in memory #52016
|
I recently noticed that any private property on a Controller stays in memory across requests when using Laravel Octane. I wonder, is this intended behaviour? |
Answered by
AlliBalliBaba
Jul 5, 2024
Replies: 2 comments
|
Hi. Yes it is. Any state is kept with octane and artisan queue:work without using the --once flag. |
0 replies
|
My bad this is not expected behavior. It was just a side effect of the request not terminating correctly. |
0 replies
Answer selected by
AlliBalliBaba
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
My bad this is not expected behavior. It was just a side effect of the request not terminating correctly.
Octane does indeed call
$route->flushController();on request termintaion