douyinghuo8874 2019-03-29 08:55
浏览 64

是否有可能使用php7(realpath缓存和opcache)提高php旧架构的性能?

I have an old php architecture with conditional files requires/includes: that is if the program controller needs a component to manage a service it require/include the corresponding file. I tested it with php7 and it seems slower than with php 5.x version. I read that the problem could be the realpath cache that should be invalidated for each call to my application. I have more question about this problem:

  1. is it possible to manage php configuration params to disable realpath cache? Does this make sense?
  2. is it possible to enlarge cache size (4096K by default) to get all the possible require/include? I don't understand when the cache is invalidated.
  3. is it possible to use some tip to reduce the cache reload with this type of architecture?
  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 寻一个支付宝扫码远程授权登录的软件助手app
    • ¥15 解riccati方程组
    • ¥15 display:none;样式在嵌套结构中的已设置了display样式的元素上不起作用?
    • ¥30 用arduino开发esp32控制ps2手柄一直报错
    • ¥15 使用rabbitMQ 消息队列作为url源进行多线程爬取时,总有几个url没有处理的问题。
    • ¥15 Ubuntu在安装序列比对软件STAR时出现报错如何解决
    • ¥50 树莓派安卓APK系统签名
    • ¥65 汇编语言除法溢出问题
    • ¥15 Visual Studio问题
    • ¥20 求一个html代码,有偿