前言
启用opcache,可提高php代码的运行效率
安装opcache扩展
PHP管理->安装扩展->opcache扩展(宝塔)
参考配置
PHP配置文件
[opcache]
opcache.enable = 1
opcache.memory_consumption = 128
opcache.revalidate_freq = 240
opcache.interned_strings_buffer = 8
opcache.max_accelerated_files = 6000
opcache.fast_shutdown = 1
opcache.enable_cli = 0
opcache.enable_file_override = 1