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?
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi. Yes it is. Any state is kept with octane and artisan queue:work without using the --once flag. |
Beta Was this translation helpful? Give feedback.
-
My bad this is not expected behavior. It was just a side effect of the request not terminating correctly. |
Beta Was this translation helpful? Give feedback.
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