部署 PHP 后必须重启 FPM:opcache 的一个教训

Written by

in

改了代码、刷新了页面、什么都没变——十有八九是 opcache 还在跑旧字节码。validate_timestamps 在高并发下并不即时。

# 部署脚本最后一行
systemctl restart php8.3-fpm

把重启写进部署管线,而不是你的记忆里。

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *