有时我们修改PHP代码后无法生效,修改PHP代码,不能立即生效,重启php-fpm服务后会生效!
推荐:php服务器
我们可以通过修改PHP配置文件解决:
[Zend Opcache] zend_extension=opcache.so opcache.memory_consumption=128 opcache.interned_strings_buffer=8 opcache.max_accelerated_files=4000 opcache.revalidate_freq=60 opcache.fast_shutdown=1 opcache.enable_cli=1 ;opcache end ;xcache ;xcache end
修改下面的代码即可解决问题:
opcache.revalidate_freq=1
Copyright © 2019- huatuo8.com 版权所有 湘ICP备2023022238号-1
违法及侵权请联系:TEL:199 1889 7713 E-MAIL:2724546146@qq.com
本站由北京市万商天勤律师事务所王兴未律师提供法律服务