PhpRiot
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

Zend_Service_SlideShare Caching policies

By default, Zend_Service_SlideShare will cache any request against the web service automatically to the filesystem (default path /tmp) for 12 hours. If you desire to change this behavior, you must provide your own Zend_Cache object using the setCacheObject() method as shown:

<?php
$frontendOptions 
= array(
                        
'lifetime' => 7200,
                        
'automatic_serialization' => true);
$backendOptions  = array(
                        
'cache_dir' => '/webtmp/');

$cache Zend_Cache::factory('Core',
                             
'File',
                             
$frontendOptions,
                             
$backendOptions);

$ss = new Zend_Service_SlideShare('APIKEY',
                                  
'SHAREDSECRET',
                                  
'USERNAME',
                                  
'PASSWORD');
$ss->setCacheObject($cache);

$ss_user $ss->getSlideShowsByUser('username'$starting_offset$limit);

Zend Framework