dtvhqlc57127 2017-10-25 21:19
浏览 79

cache_wsdl常量含义

I'm working on some code that makes SOAP calls to a web service. While making changes on the server side of things, I needed to refresh the WSDL very frequently, so I was using 'cache_wsdl' => WSDL_CACHE_NONE in my options for the constructor. Changes on the server side have settled down and I now want to cache the WSDL. I did some quick timing on single requests to see if there was any performance increase and didn't really see any. I understand WSDL_CACHE_DISK will save a copy of the wsdl in my /tmp directory, which saves on a request, and makes sense to me. But I'm not sure how WSDL_CACHE_MEMORY or WSDL_CACHE_BOTH changes behavior? Does wsdl_cache_memory store the xml or parsed wsdl in memory... between requests... for a day? How does this differ between CLI and Web? I can not find any documentation on how these flags actually affect behavior.

  • 写回答

1条回答 默认 最新

  • douxugu5836 2017-11-25 11:15
    关注

    Further research.. Try setting these in php.ini

    soap.wsdl_cache_dir [/temp] # make sure this folder is writeable by php (if using disk cache)
        # otherwise give the web server access to it
        # check what webserver has for user for example _www or www-data
        # Example on MAC:
        # chown -R $(whoami):_www /temp 
    
    soap.wsdl_cache_ttl [seconds] # Time To Live, how long it is cached
    

    More info: http://php.net/manual/en/soap.configuration.php

    评论

报告相同问题?

悬赏问题

  • ¥50 树莓派安卓APK系统签名
  • ¥15 maple软件,用solve求反函数出现rootof,怎么办?
  • ¥65 汇编语言除法溢出问题
  • ¥15 Visual Studio问题
  • ¥15 state显示变量是字符串形式,但是仍然红色,无法引用,并显示类型不匹配
  • ¥20 求一个html代码,有偿
  • ¥100 关于使用MATLAB中copularnd函数的问题
  • ¥20 在虚拟机的pycharm上
  • ¥15 jupyterthemes 设置完毕后没有效果
  • ¥15 matlab图像高斯低通滤波