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.

2/21/2017 2:17:57 PM

Accepted Answer

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('', array('cache_wsdl' => WSDL_CACHE_NONE) );
11/15/2011 8:51:26 AM

remove all wsdl* files in your /tmp folder on the server.

WSDL files are cached in your default location for all cache files defined in php.ini. Same location as your session files.

Licensed under: CC-BY-SA with attribution
Not affiliated with: Stack Overflow