Closed wuchuguang closed 6 years ago
每次reload的时候worker收到信号后都会主动回调onWorkerStop
然后自杀。
启动的时候会触发回调onWorkerStart
,你要做什么可以在自己的appServer中做。就像默认的Server会尝试清空apc缓存:
https://github.com/pinguo/php-msf/blob/d5b77dd3bbc0285792c7bd22a5edf271de53d650/src/Server.php#L557-L566
需要注意的是这里是每一个worker重启时都会执行一次。
嗯 建议在自己的AppServer里面实现这个逻辑,不应该在inotify这里实现。
改为