I had an issue this morning working on a client's production server where some live API changes (owned by a third party) weren't being picked up. So a new operation has been added (and the code has been successfully deployed), yet there are issues.
The environment is load balanced with 3 production servers, 1 of these environments could see the new API operation whereas the other 2 could not. The issue was because the WSDL had been cached. There are two ways to deal with this:
The server in question was a CentOS 6 box, so in /tmp/ were a number of cached WSDL files. Delete these.
You will need to do this every time the API changes significantly though, so it might be worth creating a script to do it (or add it to your deployment recipe if it's going to be a common problem).
When you instantiate the Soap Client, you can pass through a configuration parameter instructing it to avoid caching the WSDL. This is done as such:
$client = new SoapClient('http://somewhere.com/?wsdl', array('cache_wsdl' => WSDL_CACHE_NONE) );
I wouldn't recommend doing this unless you can help it, as fetching the WSDL on each request could really slow down the website. But it's a viable option. You could also specifiy this as an ini set:
Or you could of course configure that as part of your PHP config. I'd recommend going for approach #1 though, as it's not likely to be a regular-enough issue to cause you sufficient distress to make the user-experience for users that much worse.
Hope this helps.
I'm not actively seeking work of any kind right now, but I'm always happy, ready and willing to offer advice.
If you need help knowing where to start, knowing who to hire or making sense of where to begin - get in touch and I'll steer you in the right direction.