Page is a not externally linkable
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.