本文介紹了在 PHP 中如何清除 WSDL 緩存?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!
問題描述
通過 php_info()
保存 WSDL 緩存 (/tmp
),但我不一定知道刪除所有開頭的文件是否安全WSDL.
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.
是的,我應該能夠從 /tmp
中刪除所有內容,但我不知道如果我刪除任何所有 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.
推薦答案
您可以安全地刪除 WSDL 緩存文件.如果您希望防止將來緩存,請使用:
You can safely delete the WSDL cache files. If you wish to prevent future caching, use:
ini_set("soap.wsdl_cache_enabled", 0);
或動態:
$client = new SoapClient('http://somewhere.com/?wsdl', array('cache_wsdl' => WSDL_CACHE_NONE) );
這篇關于在 PHP 中如何清除 WSDL 緩存?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!
【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!