Search code examples
phpsoapcachingwsdl

In PHP how can you clear a WSDL cache?


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.

Yes, I should be able to just delete everything from /tmp, but I don't know what else this could effect if I delete any all WSDL files.


Solution

  • 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) );