Skip to content

Commit 3e7cdd0

Browse files
committed
test
1 parent d8c185c commit 3e7cdd0

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

frankenphp.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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.

worker.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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.
179179
func RestartWorkers() {
180-
restartThreadsAndOpcacheReset(false)
180+
restartThreadsAndOpcacheReset(true)
181181
}
182182

183183
func (worker *worker) attachThread(thread *phpThread) {

0 commit comments

Comments
 (0)