In PHP how can you clear a WSDL cache?

前端 未结 6 1552
被撕碎了的回忆
被撕碎了的回忆 2020-11-28 09:57

In through php_info() where the WSDL cache is held (/tmp), but I don\'t necessarily know if it is safe to delete all files starting with WSDL.

6条回答
  •  臣服心动
    2020-11-28 10:06

    You can safely delete the WSDL cache files. If you wish to prevent future caching, use:

    ini_set("soap.wsdl_cache_enabled", 0);
    

    or dynamically:

    $client = new SoapClient('http://somewhere.com/?wsdl', array('cache_wsdl' => WSDL_CACHE_NONE) );
    

提交回复
热议问题