File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -862,8 +862,9 @@ func scheduleOpcacheReset(thread *phpThread) {
862862 defer func () { regularThread .contextHolder .frankenPHPContext = nil }()
863863 }
864864
865- globalLogger .Info ("resetting opcache in all threads" )
865+ globalLogger .Info ("resetting opcache" , "thread" , thread . name () )
866866 C .frankenphp_reset_opcache ()
867+ globalLogger .Info ("opcache reset completed" , "thread" , thread .name ())
867868}
868869
869870// ExecuteScriptCLI executes the PHP script passed as parameter.
Original file line number Diff line number Diff line change @@ -177,7 +177,7 @@ func DrainWorkers() {
177177// RestartWorkers attempts to restart all workers gracefully
178178// All workers must be restarted at the same time to prevent issues with opcache resetting.
179179func RestartWorkers () {
180- restartThreadsAndOpcacheReset (false )
180+ restartThreadsAndOpcacheReset (true )
181181}
182182
183183func (worker * worker ) attachThread (thread * phpThread ) {
You can’t perform that action at this time.
0 commit comments