douzi4724 2014-12-08 01:44
浏览 341
已采纳

启用opcache,但为什么我看不出任何区别

I have PHP 5.5 and opcache enabled

My phpInfo shows this : http://gyazo.com/97afb5a768f95e1ff2d35bb239a62afa

opcache.enable=1
opcache.enable_cli=1
opcache.memory_consumption=128
opcache.interned_strings_buffer=8
opcache.max_accelerated_files=4000
opcache.max_file_size=15M
opcache.max_wasted_percentage=5
opcache.use_cwd=1
opcache.validate_timestamps=1
opcache.revalidate_freq=60
opcache.save_comments=0
opcache.load_comments=0
opcache.fast_shutdown=1
opcache.enable_file_override=1

But If I put it On or Off and restart apache I still don't see any difference in page loads...

••• I see "caches misses" ; what does this means ? And cache hits 0

I also installed different opcache gui panels and I see only 1 cached file.

••• I'm I missing something ?

Do I need to place a php opcache function in my php files ???

Thanks to help me.

  • 写回答

2条回答 默认 最新

  • dongxiaowei_1234 2015-08-09 07:40
    关注

    I finally know what was the problem in my case...

    My server was in suPHP and opcache was not really working even if php.ini says yes...

    I switched to FastCGI and booom !!! opcache DOES make a difference...

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

报告相同问题?

悬赏问题

  • ¥15 在获取boss直聘的聊天的时候只能获取到前40条聊天数据
  • ¥20 关于URL获取的参数,无法执行二选一查询
  • ¥15 液位控制,当液位超过高限时常开触点59闭合,直到液位低于低限时,断开
  • ¥15 marlin编译错误,如何解决?
  • ¥15 有偿四位数,节约算法和扫描算法
  • ¥15 VUE项目怎么运行,系统打不开
  • ¥50 pointpillars等目标检测算法怎么融合注意力机制
  • ¥20 Vs code Mac系统 PHP Debug调试环境配置
  • ¥60 大一项目课,微信小程序
  • ¥15 求视频摘要youtube和ovp数据集