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

    评论

报告相同问题?

悬赏问题

  • ¥15 如何用stata画出文献中常见的安慰剂检验图
  • ¥15 c语言链表结构体数据插入
  • ¥40 使用MATLAB解答线性代数问题
  • ¥15 COCOS的问题COCOS的问题
  • ¥15 FPGA-SRIO初始化失败
  • ¥15 MapReduce实现倒排索引失败
  • ¥15 ZABBIX6.0L连接数据库报错,如何解决?(操作系统-centos)
  • ¥15 找一位技术过硬的游戏pj程序员
  • ¥15 matlab生成电测深三层曲线模型代码
  • ¥50 随机森林与房贷信用风险模型