PhpRiot
Follow phpriot on Twitter
Sponsored Link
Become Zend Certified

Prepare for the ZCE exam using our quizzes (web or iPad/iPhone). More info...


When you're ready get 7.5% off your exam voucher using voucher CJQNOV23 at the Zend Store
Free iPad/iPhone App
Available on the App Store

  • PHP manual
  • Zend Framework manual
  • Smarty manual
  • PHP articles
  • PHP training

Performance and Caching

You can setup various caching options to improve the performance for resolving WSDL and authentication tokens.

First of all, you can setup the internal SoapClient (PHP) caching values.

Example 793. WSDL cache options

<?php
Zend_Service_DeveloperGarden_SecurityTokenServer_Cache
::setWsdlCache(
    [
PHP CONSTANT]
);

The [PHP CONSTANT] can be one of the following values:

  • WSDL_CACHE_DISC: enabled disc caching

  • WSDL_CACHE_MEMORY: enabled memory caching

  • WSDL_CACHE_BOTH: enabled disc and memory caching

  • WSDL_CACHE_NONE: disabled both caching

If you also want to cache the result for calls to the SecuritTokenServer you can setup a Zend_Cache instance and pass it to the setCache().

Example 794. SecurityTokenServer cache option

<?php
$cache 
Zend_Cache::factory('Core', ...);
Zend_Service_DeveloperGarden_SecurityTokenServer_Cache::setCache($cache);

Zend Framework