Zend OPCache - opcache.enable_cli 1 or 0? What does it do?

后端 未结 3 1857
情书的邮戳
情书的邮戳 2020-12-29 21:43

In the documentation it says \"mostly used for debugging\" which would lead me think \"never enable it unless you\'ve a problem and need to do some debugging,\" however read

3条回答
  •  没有蜡笔的小新
    2020-12-29 22:39

    As per PHP docs:

    opcache.enable_cli boolean enables the opcode cache for the CLI version of PHP. This is mostly useful for testing and debugging.

    Therefore it should be disabled unless you're really need this.

    This can be useful when you've some long-term migration process running from the command-line (personally I've tested OPcache v7.0.3 for CLI by running some extensive migration script and I didn't see much performance improvements).

提交回复
热议问题