dtmm0148603 2014-03-13 12:30
浏览 199
已采纳

为什么PHP 5.5的OPcache显示零命中? suPHP的罪魁祸首?

PHP 5.5's OPcache extension is enabled on my (shared) web host, but for some reason it always reports "0 hits" in the stats. Could that be because it's not compatible with suPHP?

Or anyone have any other suggestions as to why there are 0 cache hits?

enter image description here

  • 写回答

2条回答 默认 最新

  • dongyou6768 2014-03-25 21:39
    关注

    I've been told that no opcache extension is currently compatible with suPHP, sadly.

    LiteSpeed's suEXEC can support opcode caching but only in 'daemon' or 'process group' modes, not in standard 'worker' mode (see their explanation here).

    So even though you might be able to enable the opcache in cPanel or via INI, you don't get cache hits because the PHP process ends and the RAM is freed. Looks like I'm out of luck for the time being.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 如何实验stm32主通道和互补通道独立输出
  • ¥30 这是哪个作者做的宝宝起名网站
  • ¥60 版本过低apk如何修改可以兼容新的安卓系统
  • ¥25 由IPR导致的DRIVER_POWER_STATE_FAILURE蓝屏
  • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
  • ¥50 有数据,怎么用matlab求全要素生产率
  • ¥15 TI的insta-spin例程
  • ¥15 完成下列问题完成下列问题
  • ¥15 C#算法问题, 不知道怎么处理这个数据的转换
  • ¥15 YoloV5 第三方库的版本对照问题