duanbiaojin8860 2018-05-22 08:57
浏览 162

我如何检查,SoapClient是否使用缓存的wsdl?

I use SoapClient. And i get message from API provider that my source requests wsdl at each request. But i see that after executing in /tmp appear file with wsdl data, i suppose this is cache.

How can i check, is cache really used or not? API use https so i can't use something like tcpflow to check that.

Of course i can use some pure php soap implementation and use debugger, but at this point i don't want do that.

Cache should be used. APIs admin said that i don't use cache and create too much load. But i can't check on my side is this true or not. And my question - how can i check that?

  • 写回答

2条回答 默认 最新

  • duanna1407 2018-05-22 08:59
    关注

    If you pass this option to your SoapClient, you can be sure that cache is not being used.

    'cache_wsdl' => WSDL_CACHE_NONE
    

    Or, if you WANT cache, you can use either of these options:

    WSDL_CACHE_DISK
    WSDL_CACHE_MEMORY
    WSDL_CACHE_BOTH
    
    评论

报告相同问题?

悬赏问题

  • ¥15 高德地图点聚合中Marker的位置无法实时更新
  • ¥15 DIFY API Endpoint 问题。
  • ¥20 sub地址DHCP问题
  • ¥15 delta降尺度计算的一些细节,有偿
  • ¥15 Arduino红外遥控代码有问题
  • ¥15 数值计算离散正交多项式
  • ¥30 数值计算均差系数编程
  • ¥15 redis-full-check比较 两个集群的数据出错
  • ¥15 Matlab编程问题
  • ¥15 训练的多模态特征融合模型准确度很低怎么办