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条)

报告相同问题?

悬赏问题

  • ¥100 需要跳转番茄畅听app的adb命令
  • ¥50 寻找一位有逆向游戏盾sdk 应用程序经验的技术
  • ¥15 请问有用MZmine处理 “Waters SYNAPT G2-Si QTOF质谱仪在MSE模式下采集的非靶向数据” 的分析教程吗
  • ¥50 opencv4nodejs 如何安装
  • ¥15 adb push异常 adb: error: 1409-byte write failed: Invalid argument
  • ¥15 nginx反向代理获取ip,java获取真实ip
  • ¥15 eda:门禁系统设计
  • ¥50 如何使用js去调用vscode-js-debugger的方法去调试网页
  • ¥15 376.1电表主站通信协议下发指令全被否认问题
  • ¥15 物体双站RCS和其组成阵列后的双站RCS关系验证