dtmm0148603 2014-03-13 04: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 13: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条)
编辑
预览

报告相同问题?

手机看
程序员都在用的中文IT技术交流社区

程序员都在用的中文IT技术交流社区

专业的中文 IT 技术社区,与千万技术人共成长

专业的中文 IT 技术社区,与千万技术人共成长

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

客服 返回
顶部