Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Force re-cache of WSDL in php

I know how to disable WSDL-cache in PHP, but what about force a re-caching of the WSDL?

This is what i tried: I run my code with caching set to disabled, and the new methods showed up as espected. Then I activated caching, but of some reason my old non-working wsdl showed up again. So: how can I force my new WSDL to overwrite my old cache?

like image 257
qualbeen Avatar asked Nov 27 '08 11:11

qualbeen


1 Answers

I guess when you disable caching it will also stop writing to the cache. So when you re-enable the cache the old cached copy will still be there and valid. You could try (with caching enabled)

ini_set('soap.wsdl_cache_ttl', 1);

I put in a time-to-live of one second in because I think if you put zero in it will disable the cache entirely but not remove the entry. You probably will only want to put that line in when you want to kill the cached copy.

like image 119
Tom Haigh Avatar answered Sep 17 '22 16:09

Tom Haigh