Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 614
jW. Avatar asked Nov 19 '08 21:11

jW.


2 Answers

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) );
like image 180
Owen Avatar answered Nov 18 '22 00:11

Owen


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.

like image 29
user3259435 Avatar answered Nov 18 '22 00:11

user3259435