Page is a not externally linkable
- Code, Content, and Presentation
-- PHP Server Side Scripting
---- nusoap 0.9.5


enigma1 - 6:25 pm on May 16, 2012 (gmt 0)


In the nusoap library you should have a class called nusoap_wsdlcache. Here is some code

// Setup the requested url
$req = 'http://example.com/request.wsdl';
// Cache for half hour in the cache folder
$soap_cache = new nusoap_wsdlcache('/cache', 1800);
// Check if request is in cache
$soap_wsdl = $soap_cache->get($req);
// If not in cache make a record
if(empty($soap_wsdl)) {
$soap_wsdl = new wsdl($req);
$soap_cache->put($soap_wsdl);
}
// Create the client object
$soap_client = new nusoap_client($soap_wsdl, true);

So if the request is already cached it won't be recreated.


Thread source:: http://www.webmasterworld.com/php/4448836.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com