这些函数的行为受 php.ini 的影响。
Name | Default | Changeable | Changelog |
---|---|---|---|
soap.wsdl_cache_enabled | "1" | PHP_INI_ALL | Available since PHP 5.0.0. |
soap.wsdl_cache_dir | "/tmp" | PHP_INI_ALL | Available since PHP 5.0.0. |
soap.wsdl_cache_ttl | "86400" | PHP_INI_ALL | Available since PHP 5.0.0. |
soap.wsdl_cache_limit | "5" | PHP_INI_ALL | Available since PHP 5.1.5. |
soap.wsdl_cache | "1" | PHP_INI_ALL | Available since PHP 5.1.5. |
有关 PHP_INI_* 常量进一步的细节与定义参见php.ini 配置选项。
以下是配置选项的简要解释。
Enables or disables the WSDL caching feature.
Sets the directory name where the SOAP extension will put cache files.
Sets the number of seconds (time to live) that cached files will be used instead of the originals.
Maximum number of in-memory cached WSDL files. Adding further files into a full memory cache will delete the oldest files from it.
If soap.wsdl_cache_enabled is on, this setting determines the type of caching. It can be any of: WSDL_CACHE_NONE (0), WSDL_CACHE_DISK (1), WSDL_CACHE_MEMORY (2) or WSDL_CACHE_BOTH (3). This can also be set via the options array in the SoapClient or SoapServer constructor.