You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Server & Version: OpenSwoole 4.11 and also Swoole 4.8.10 (Using their official docker dev-images respectively)
Database Driver & Version: Not relevant
Description:
The opcache is not cleared before the worker boot, resulting in hot reload not working with all bootstrapped content using at least Swoole and OpenSwoole. (tested with both)
The solution is very simple, and is simply a re-ordering of the boot sequence of a worker, moving the clearOpcodeCache() method call before the $this->bootWorker() method call fixes the issue on my setup.
Steps To Reproduce:
Enable opcache in php.ini: opcache.enable_cli=1
With the server running in --watch mode, edit any bootstrapped file, for example a routes file.
Observe hot reloading is not having any effect on bootstrapped files, for example that routes do not change untill server restart.
The text was updated successfully, but these errors were encountered:
Description:
The opcache is not cleared before the worker boot, resulting in hot reload not working with all bootstrapped content using at least Swoole and OpenSwoole. (tested with both)
The solution is very simple, and is simply a re-ordering of the boot sequence of a worker, moving the
clearOpcodeCache()
method call before the$this->bootWorker()
method call fixes the issue on my setup.Steps To Reproduce:
opcache.enable_cli=1
The text was updated successfully, but these errors were encountered: